diff --git a/libraries/ESP32/examples/RMT/RMTLoopback/RMTLoopback.ino b/libraries/ESP32/examples/RMT/RMTLoopback/RMTLoopback.ino index 54f2d2c9..248aad3f 100644 --- a/libraries/ESP32/examples/RMT/RMTLoopback/RMTLoopback.ino +++ b/libraries/ESP32/examples/RMT/RMTLoopback/RMTLoopback.ino @@ -16,6 +16,7 @@ static EventGroupHandle_t events; void setup() { Serial.begin(115200); + events = xEventGroupCreate(); if ((rmt_send = rmtInit(18, true, RMT_MEM_64)) == NULL) {