Fix issue raised by @rondlh

This commit is contained in:
Luc 2024-02-05 14:09:13 +08:00
parent 47b206a0b8
commit d8f84b94d9
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
#define _VERSION_ESP3D_H #define _VERSION_ESP3D_H
// version and sources location // version and sources location
#define FW_VERSION "3.0.0.a227" #define FW_VERSION "3.0.0.a228"
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0" #define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
#endif //_VERSION_ESP3D_H #endif //_VERSION_ESP3D_H

View File

@ -80,7 +80,7 @@ bool WebSocket_Server::pushMSG(uint num, const char *data) {
bool WebSocket_Server::isConnected(){ bool WebSocket_Server::isConnected(){
if (_websocket_server) { if (_websocket_server) {
return _websocket_server->connectedClients(true) > 0; return _websocket_server->connectedClients() > 0;
} }
return false; return false;
} }