Fixed new set API not returning anything
This commit is contained in:
parent
1a131c96bf
commit
1bea7ea157
@ -4,10 +4,10 @@
|
|||||||
const uint8_t VersionMajor = 2;
|
const uint8_t VersionMajor = 2;
|
||||||
const uint8_t VersionMinor = 0;
|
const uint8_t VersionMinor = 0;
|
||||||
const uint8_t VersionPatch = 0;
|
const uint8_t VersionPatch = 0;
|
||||||
const uint8_t VersionMetadata = 32;
|
const uint8_t VersionMetadata = 33;
|
||||||
const char VersionBranch[] = "release/2.0";
|
const char VersionBranch[] = "release/2.0";
|
||||||
const char VersionSemVer[] = "2.0.0-beta.1";
|
const char VersionSemVer[] = "2.0.0-beta.1";
|
||||||
const char VersionFullSemVer[] = "2.0.0-beta.1+32";
|
const char VersionFullSemVer[] = "2.0.0-beta.1+33";
|
||||||
const char VersionCommitDate[] = "2018-01-31";
|
const char VersionCommitDate[] = "2018-01-31";
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -63,6 +63,8 @@ void handleSet(AsyncWebServerRequest *request)
|
|||||||
stairs->setAll(value, time, 0);
|
stairs->setAll(value, time, 0);
|
||||||
else
|
else
|
||||||
stairs->sweep(value, time, from == 1);
|
stairs->sweep(value, time, from == 1);
|
||||||
|
|
||||||
|
request->send(200);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user