Skip to content

Commit b4f4860

Browse files
authored
Update RMTLoopback.ino
1 parent fdf48ce commit b4f4860

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/ESP32/examples/RMT/RMTLoopback/RMTLoopback.ino

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ rmt_data_t data[256];
1111
rmt_obj_t* rmt_send = NULL;
1212
rmt_obj_t* rmt_recv = NULL;
1313

14-
static EventGroupHandle_t events = xEventGroupCreate();
14+
static EventGroupHandle_t events;
1515

1616
void setup()
1717
{
1818
Serial.begin(115200);
19+
events = xEventGroupCreate();
1920

2021
if ((rmt_send = rmtInit(18, true, RMT_MEM_64)) == NULL)
2122
{

0 commit comments

Comments
 (0)