fix warnings

This commit is contained in:
Luc 2019-10-14 20:16:52 +08:00
parent d376059509
commit 800f6a85b7
3 changed files with 9 additions and 2 deletions

View File

@ -425,12 +425,16 @@ void ESP3DGlobalOutput::SetStatus(const char * status)
{
#ifdef DISPLAY_DEVICE
esp3d_display.SetStatus(status);
#else
(void)status;
#endif //DISPLAY_DEVICE
}
void ESP3DGlobalOutput::display_progress(uint8_t v)
{
#ifdef DISPLAY_DEVICE
esp3d_display.progress(v);
#else
(void)v;
#endif //DISPLAY_DEVICE
}
@ -438,6 +442,8 @@ void ESP3DGlobalOutput::display_IP(bool force)
{
#ifdef DISPLAY_DEVICE
esp3d_display.display_IP(force);
#else
(void)force;
#endif //DISPLAY_DEVICE
}

View File

@ -28,6 +28,7 @@
//[ESP200] pwd=<user/admin password>
bool Commands::ESP200(const char* cmd_params, level_authenticate_type auth_type, ESP3DOutput * output)
{
(void)cmd_params;
#ifdef AUTHENTICATION_FEATURE
if (auth_type == LEVEL_GUEST) {
output->printERROR("Wrong authentication!", 401);

View File

@ -101,11 +101,11 @@ void handle_Websocket_Terminal_Event(uint8_t num, uint8_t type, uint8_t * payloa
break;
case WStype_TEXT:
//we do not expect any input
log_esp3d("[IGNORED][%u] get Text: %s port %d", num, payload, num,websocket_terminal_server.port());
log_esp3d("[IGNORED][%u] get Text: %s port %d", num, payload, websocket_terminal_server.port());
break;
case WStype_BIN:
//we do not expect any input
log_esp3d("[IGNORED][%u] get binary length: %u port %d", num, length, num,websocket_terminal_server.port());
log_esp3d("[IGNORED][%u] get binary length: %u port %d", num, length, websocket_terminal_server.port());
break;
default:
break;