[ESP8266] Fixed compiler warnings
This commit is contained in:
parent
2302433f2e
commit
030b7c8a55
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ size_t ESP8266::receive(uint8_t* data, size_t len, uint32_t timeout) {
|
|||
uint16_t ESP8266::getNumBytes(uint32_t timeout, size_t minBytes) {
|
||||
// wait for available data
|
||||
uint32_t start = millis();
|
||||
while(_mod->ModuleSerial->available() < minBytes) {
|
||||
while(_mod->ModuleSerial->available() < (int16_t)minBytes) {
|
||||
if(millis() - start >= timeout) {
|
||||
return(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue