mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Add Demo Mode flags for Sun/Wind sensor
This commit is contained in:
parent
2ecc0de36e
commit
60f8c629bf
3 changed files with 6 additions and 0 deletions
|
|
@ -1162,6 +1162,11 @@ void SomfyShade::processFrame(somfy_frame_t &frame, bool internal) {
|
|||
this->flags |= static_cast<uint8_t>(somfy_flags_t::Windy);
|
||||
else
|
||||
this->flags &= ~(static_cast<uint8_t>(somfy_flags_t::Windy));
|
||||
if(frame.rollingCode & static_cast<uint8_t>(somfy_flags_t::DemoMode))
|
||||
this->flags |= static_cast<uint8_t>(somfy_flags_t::DemoMode);
|
||||
else
|
||||
this->flags &= ~(static_cast<uint8_t>(somfy_flags_t::DemoMode));
|
||||
|
||||
|
||||
const bool isSunny = this->flags & static_cast<uint8_t>(somfy_flags_t::Sunny);
|
||||
const bool isWindy = this->flags & static_cast<uint8_t>(somfy_flags_t::Windy);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue