diff --git a/Somfy.cpp b/Somfy.cpp index 754831a..0a1f36b 100644 --- a/Somfy.cpp +++ b/Somfy.cpp @@ -1162,6 +1162,11 @@ void SomfyShade::processFrame(somfy_frame_t &frame, bool internal) { this->flags |= static_cast(somfy_flags_t::Windy); else this->flags &= ~(static_cast(somfy_flags_t::Windy)); + if(frame.rollingCode & static_cast(somfy_flags_t::DemoMode)) + this->flags |= static_cast(somfy_flags_t::DemoMode); + else + this->flags &= ~(static_cast(somfy_flags_t::DemoMode)); + const bool isSunny = this->flags & static_cast(somfy_flags_t::Sunny); const bool isWindy = this->flags & static_cast(somfy_flags_t::Windy); diff --git a/Somfy.h b/Somfy.h index 340cc18..1fa1ece 100644 --- a/Somfy.h +++ b/Somfy.h @@ -107,6 +107,7 @@ struct somfy_tx_queue_t { enum class somfy_flags_t : byte { SunFlag = 0x01, + DemoMode = 0x04, Windy = 0x10, Sunny = 0x20 }; diff --git a/SomfyController.ino.esp32.bin b/SomfyController.ino.esp32.bin index 7faeae2..cb1695e 100644 Binary files a/SomfyController.ino.esp32.bin and b/SomfyController.ino.esp32.bin differ