mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 03:50:36 +08:00
fix warnings
This commit is contained in:
parent
d376059509
commit
800f6a85b7
@ -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
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user