diff --git a/code/src/fauxmo.ino b/code/src/fauxmo.ino index 2449ecb9..cd32c601 100644 --- a/code/src/fauxmo.ino +++ b/code/src/fauxmo.ino @@ -24,9 +24,9 @@ void fauxmoConfigure() { void fauxmoSetup() { fauxmoConfigure(); - fauxmo.onMessage([](const char * state) { - DEBUG_MSG("[FAUXMO] State: %s\n", state); - relayStatus(0, state[0] == '1'); + fauxmo.onMessage([](bool state) { + DEBUG_MSG("[FAUXMO] State: %s\n", state ? "ON" : "OFF"); + relayStatus(0, state); }); }