Hide warnings in updater only mode

This commit is contained in:
Luc
2020-12-22 19:27:01 +01:00
parent 0b193fb1b6
commit a4044c4b91
2 changed files with 2 additions and 0 deletions

View File

@@ -390,6 +390,7 @@ void ESPCOM::send2TCP (const char * data, bool async)
bool ESPCOM::processFromSerial (bool async)
{
uint8_t i;
(void)i; //avoid warning if updater only
//check UART for data
if (ESPCOM::available(DEFAULT_PRINTER_PIPE)) {
size_t len = ESPCOM::available(DEFAULT_PRINTER_PIPE);