fix warnings found in nrf52 build

This commit is contained in:
Kevin Hester
2021-03-08 15:20:43 +08:00
parent c0e180759d
commit 707ed75138
4 changed files with 6 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ size_t RedirectablePrint::vprintf(const char *format, va_list arg)
va_end(arg);
return 0;
};
if (len >= printBufLen) {
if (len >= (int) printBufLen) {
delete[] printBuf;
printBufLen *= 2;
printBuf = new char[printBufLen];