fix previous commit

This commit is contained in:
RaffaelW 2025-04-13 23:08:51 +02:00
parent f0dcabcabc
commit 678bb047ac

View file

@ -442,7 +442,7 @@ void loop()
officially times out. That amount of time is converted into ESP32 clock officially times out. That amount of time is converted into ESP32 clock
ticks using the constant `DMX_TIMEOUT_TICK`. If it takes longer than that ticks using the constant `DMX_TIMEOUT_TICK`. If it takes longer than that
amount of time to receive data, this if statement will evaluate to false. */ amount of time to receive data, this if statement will evaluate to false. */
if (direction1 == Input) if (direction1 == Input && dmx_receive(dmx2, &dmx2_packet, DMX_TIMEOUT_TICK))
{ {
// Serial.println("Recv DMX1"); // Serial.println("Recv DMX1");
/* If this code gets called, it means we've received DMX data! */ /* If this code gets called, it means we've received DMX data! */