8000 Remove compiler warnings (#854) · jobitjoseph/arduinoWebSockets@503105a · GitHub
[go: up one dir, main page]

Skip to content

Commit 503105a

Browse files
authored
Remove compiler warnings (Links2004#854)
* [Prevent unwanted Compiler Warnings]: Issue Links2004#772
8000
1 parent 6a26f74 commit 503105a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/WebSockets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ void WebSockets::handleHBTimeout(WSclient_t * client) {
750750
client->pongTimeoutCount++;
751751
client->lastPing = millis() - client->pingInterval - 500; // force ping on the next run
752752

753-
DEBUG_WEBSOCKETS("[HBtimeout] pong TIMEOUT! lp=%d millis=%d pi=%d count=%d\n", client->lastPing, millis(), pi, client->pongTimeoutCount);
753+
DEBUG_WEBSOCKETS("[HBtimeout] pong TIMEOUT! lp=%d millis=%lu pi=%d count=%d\n", client->lastPing, millis(), pi, client->pongTimeoutCount);
754754

755755
if(client->disconnectTimeoutCount && client->pongTimeoutCount >= client->disconnectTimeoutCount) {
756756
DEBUG_WEBSOCKETS("[HBtimeout] count=%d, DISCONNECTING\n", client->pongTimeoutCount);

src/WebSocketsServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ void WebSocketsServer::handleNewClients(void) {
655655
#endif
656656

657657
// store new connection
658-
WEBSOCKETS_NETWORK_CLASS * tcpClient = new WEBSOCKETS_NETWORK_CLASS(_server->available());
658+
WEBSOCKETS_NETWORK_CLASS * tcpClient = new WEBSOCKETS_NETWORK_CLASS(_server->accept());
659659
if(!tcpClient) {
660660
DEBUG_WEBSOCKETS("[WS-Client] creating Network class failed!");
661661
return;

0 commit comments

Comments
 (0)
0