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

@ -162,6 +162,7 @@ bool COMMAND::execute_command (int cmd, String cmd_params, tpipe output, level_a
{
bool response = true;
level_authenticate_type auth_type = auth_level;
(void)auth_type; //avoid warning if updater only
#ifdef AUTHENTICATION_FEATURE
if (isadmin(cmd_params)) {

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);