Skip to content
RED SAG Skills
medium10 pts · first answer countsembedded-cundefined-behaviour

A variable changes by itself

After this loop, the global mode suddenly holds a strange value. What is the likely cause?

static uint8_t rx_buf[16];
static uint8_t mode;
for (int i = 0; i <= 16; i++) rx_buf[i] = uart_read();
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions