mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-14 04:15:54 +08:00
Hide warnings in updater only mode
This commit is contained in:
parent
0b193fb1b6
commit
a4044c4b91
@ -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)) {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user