mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-10-17 04:51:29 +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
|
#ifdef DISPLAY_DEVICE
|
||||||
esp3d_display.SetStatus(status);
|
esp3d_display.SetStatus(status);
|
||||||
|
#else
|
||||||
|
(void)status;
|
||||||
#endif //DISPLAY_DEVICE
|
#endif //DISPLAY_DEVICE
|
||||||
}
|
}
|
||||||
void ESP3DGlobalOutput::display_progress(uint8_t v)
|
void ESP3DGlobalOutput::display_progress(uint8_t v)
|
||||||
{
|
{
|
||||||
#ifdef DISPLAY_DEVICE
|
#ifdef DISPLAY_DEVICE
|
||||||
esp3d_display.progress(v);
|
esp3d_display.progress(v);
|
||||||
|
#else
|
||||||
|
(void)v;
|
||||||
#endif //DISPLAY_DEVICE
|
#endif //DISPLAY_DEVICE
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -438,6 +442,8 @@ void ESP3DGlobalOutput::display_IP(bool force)
|
|||||||
{
|
{
|
||||||
#ifdef DISPLAY_DEVICE
|
#ifdef DISPLAY_DEVICE
|
||||||
esp3d_display.display_IP(force);
|
esp3d_display.display_IP(force);
|
||||||
|
#else
|
||||||
|
(void)force;
|
||||||
#endif //DISPLAY_DEVICE
|
#endif //DISPLAY_DEVICE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
//[ESP200] pwd=<user/admin password>
|
//[ESP200] pwd=<user/admin password>
|
||||||
bool Commands::ESP200(const char* cmd_params, level_authenticate_type auth_type, ESP3DOutput * output)
|
bool Commands::ESP200(const char* cmd_params, level_authenticate_type auth_type, ESP3DOutput * output)
|
||||||
{
|
{
|
||||||
|
(void)cmd_params;
|
||||||
#ifdef AUTHENTICATION_FEATURE
|
#ifdef AUTHENTICATION_FEATURE
|
||||||
if (auth_type == LEVEL_GUEST) {
|
if (auth_type == LEVEL_GUEST) {
|
||||||
output->printERROR("Wrong authentication!", 401);
|
output->printERROR("Wrong authentication!", 401);
|
||||||
|
@ -101,11 +101,11 @@ void handle_Websocket_Terminal_Event(uint8_t num, uint8_t type, uint8_t * payloa
|
|||||||
break;
|
break;
|
||||||
case WStype_TEXT:
|
case WStype_TEXT:
|
||||||
//we do not expect any input
|
//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;
|
break;
|
||||||
case WStype_BIN:
|
case WStype_BIN:
|
||||||
//we do not expect any input
|
//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;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user