Skip to content

Commit 271f94b

Browse files
committed
Change return value to align with other APIs
1 parent deacaac commit 271f94b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP_NOW/src/ESP32_NOW_Serial.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void ESP_NOW_Serial_Class::end(){
8282
//Stream
8383
int ESP_NOW_Serial_Class::available(void){
8484
if(rx_queue == NULL){
85-
return -1;
85+
return 0;
8686
}
8787
return uxQueueMessagesWaiting(rx_queue);
8888
}

0 commit comments

Comments
 (0)