Small UDP modem update.

This commit is contained in:
Jonathan Naylor 2021-02-18 22:56:20 +00:00
parent e291096d22
commit fe3be93a2e
2 changed files with 3 additions and 2 deletions

View file

@ -77,7 +77,8 @@ int CUDPController::read(unsigned char* buffer, unsigned int length)
if (avail < length) if (avail < length)
length = avail; length = avail;
m_buffer.getData(buffer, length); if (length > 0U)
m_buffer.getData(buffer, length);
return int(length); return int(length);
} }

View file

@ -19,6 +19,6 @@
#if !defined(VERSION_H) #if !defined(VERSION_H)
#define VERSION_H #define VERSION_H
const char* VERSION = "20210217"; const char* VERSION = "20210218";
#endif #endif