1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-07 16:23:38 +03:00

Fix UdpContext::peek to return int (#1946)

This commit is contained in:
Ivan Grokhotkov 2016-04-26 16:02:07 +08:00
parent 334837533f
commit 33723a9b52

View File

@ -213,7 +213,7 @@ public:
return size; return size;
} }
char peek() int peek()
{ {
if (!_rx_buf || _rx_buf_offset == _rx_buf->len) if (!_rx_buf || _rx_buf_offset == _rx_buf->len)
return -1; return -1;