Skip to content

Commit 32a7446

Browse files
committed
Fixed wrong define name
1 parent b3511e5 commit 32a7446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP32/examples/Serial/InterruptQueue/InterruptQueue.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void loop()
4444
}
4545

4646
// Check if data in the queue and check if there is a complete message (8-bytes) in the queue
47-
if(!(uxQueueMessagesWaiting(bufferQueue) % RESPONSE_SIZE)){
47+
if(!(uxQueueMessagesWaiting(bufferQueue) % BUFFER_SIZE)){
4848
char c;
4949
// Check if the queue is not empty, 0 % 8 returns 0 instead, so does 24 % 8
5050
while(uxQueueMessagesWaiting(bufferQueue) > 0){

0 commit comments

Comments
 (0)