From 1bea7ea1576f4f33695e88240ea72b9e54c6eb20 Mon Sep 17 00:00:00 2001 From: Mark van Renswoude Date: Wed, 31 Jan 2018 21:08:47 +0100 Subject: [PATCH] Fixed new set API not returning anything --- src/assets/version.h | 4 ++-- src/server/api.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/assets/version.h b/src/assets/version.h index 6804604..e6b57ed 100644 --- a/src/assets/version.h +++ b/src/assets/version.h @@ -4,10 +4,10 @@ const uint8_t VersionMajor = 2; const uint8_t VersionMinor = 0; const uint8_t VersionPatch = 0; -const uint8_t VersionMetadata = 32; +const uint8_t VersionMetadata = 33; const char VersionBranch[] = "release/2.0"; 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"; #endif diff --git a/src/server/api.cpp b/src/server/api.cpp index 0999241..058fc8b 100644 --- a/src/server/api.cpp +++ b/src/server/api.cpp @@ -63,6 +63,8 @@ void handleSet(AsyncWebServerRequest *request) stairs->setAll(value, time, 0); else stairs->sweep(value, time, from == 1); + + request->send(200); }