Add logger to show connect and disconnect

This commit is contained in:
Will Tatam
2023-03-30 15:35:00 +01:00
parent db812439ff
commit c867e34ed3

View File

@@ -134,7 +134,7 @@ void handleDMXInput() {
if (!packet.err) {
/* If this is the first DMX data we've received, lets log it! */
if (!dmxIsConnected) {
DEBUG_PRINTLN("DMX is connected!");
USER_PRINTLN("DMX is connected!");
dmxIsConnected = true;
}
@@ -153,7 +153,7 @@ void handleDMXInput() {
}
else if (dmxIsConnected && (now - dmxLastUpdate > 5000)) {
dmxIsConnected = false;
DEBUG_PRINTLN("DMX was disconnected.");
USER_PRINTLN("DMX was disconnected.");
}
}
#else