We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 793b1fb commit 0c60c73Copy full SHA for 0c60c73
libraries/ESP32/examples/Serial/onReceiveExample/onReceiveExample.ino
@@ -107,9 +107,9 @@ void loop() {
107
UART0.print(" bytes] ");
108
UART0.println(uart_buffer);
109
uart_buffer = ""; // reset uart_buffer for the next UART reading
110
+ // releases the mutex for more data to be received
111
+ xSemaphoreGive(uart_buffer_Mutex);
112
}
- // releases the mutex for more data to be received
- xSemaphoreGive(uart_buffer_Mutex);
113
114
UART0.println("Sleeping for 1 second...");
115
delay(1000);
0 commit comments