Skip to content

Commit 9496ff0

Browse files
authored
Update MQTT.cpp
1 parent 0bd9ba7 commit 9496ff0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hardware/MQTT.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ void MQTT::on_message(const struct mosquitto_message *message)
227227
else if (szCommand == "switchlight")
228228
{
229229
std::string switchcmd = root["switchcmd"].asString();
230-
#if ((switchcmd != "On") && (switchcmd != "Off") && (switchcmd != "Toggle") && (switchcmd != "Set Level") && (switchcmd != "Stop"))
231-
# goto mqttinvaliddata;
230+
//if ((switchcmd != "On") && (switchcmd != "Off") && (switchcmd != "Toggle") && (switchcmd != "Set Level") && (switchcmd != "Stop"))
231+
// goto mqttinvaliddata;
232232
int level = 0;
233233
if (!root["level"].empty())
234234
{

0 commit comments

Comments
 (0)