Add logger to show connect and disconnect
This commit is contained in:
@@ -134,7 +134,7 @@ void handleDMXInput() {
|
|||||||
if (!packet.err) {
|
if (!packet.err) {
|
||||||
/* If this is the first DMX data we've received, lets log it! */
|
/* If this is the first DMX data we've received, lets log it! */
|
||||||
if (!dmxIsConnected) {
|
if (!dmxIsConnected) {
|
||||||
DEBUG_PRINTLN("DMX is connected!");
|
USER_PRINTLN("DMX is connected!");
|
||||||
dmxIsConnected = true;
|
dmxIsConnected = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ void handleDMXInput() {
|
|||||||
}
|
}
|
||||||
else if (dmxIsConnected && (now - dmxLastUpdate > 5000)) {
|
else if (dmxIsConnected && (now - dmxLastUpdate > 5000)) {
|
||||||
dmxIsConnected = false;
|
dmxIsConnected = false;
|
||||||
DEBUG_PRINTLN("DMX was disconnected.");
|
USER_PRINTLN("DMX was disconnected.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user