mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Fix scoping issue when setting the IP address #100
This commit is contained in:
parent
9fdf5896d1
commit
f62dcef161
5 changed files with 22 additions and 4 deletions
11
Somfy.cpp
11
Somfy.cpp
|
|
@ -1466,11 +1466,19 @@ void SomfyShade::processFrame(somfy_frame_t &frame, bool internal) {
|
|||
this->emitState();
|
||||
}
|
||||
break;
|
||||
|
||||
case somfy_commands::Prog:
|
||||
case somfy_commands::MyUp:
|
||||
case somfy_commands::MyDown:
|
||||
case somfy_commands::MyUpDown:
|
||||
case somfy_commands::UpDown:
|
||||
this->emitCommand(cmd, internal ? "internal" : "remote", frame.remoteAddress);
|
||||
break;
|
||||
|
||||
case somfy_commands::Flag:
|
||||
this->flags &= ~(static_cast<uint8_t>(somfy_flags_t::SunFlag));
|
||||
somfy.isDirty = true;
|
||||
this->emitState();
|
||||
this->emitCommand(cmd, internal ? "internal" : "remote", frame.remoteAddress);
|
||||
break;
|
||||
case somfy_commands::SunFlag:
|
||||
{
|
||||
|
|
@ -1486,6 +1494,7 @@ void SomfyShade::processFrame(somfy_frame_t &frame, bool internal) {
|
|||
}
|
||||
somfy.isDirty = true;
|
||||
this->emitState();
|
||||
this->emitCommand(cmd, internal ? "internal" : "remote", frame.remoteAddress);
|
||||
}
|
||||
break;
|
||||
case somfy_commands::Up:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue