From 5bdff55f4b49805d5e044b9e7cfcdea8e547c07f Mon Sep 17 00:00:00 2001 From: slaff Date: Sun, 29 Sep 2019 17:23:36 +0200 Subject: [PATCH] The compilation was failing due to missing millis. They are not needed anyway because the debug statements contain already the timestamp. (#1853) --- Sming/Core/Network/TcpConnection.cpp | 4 ++-- Sming/Core/Network/TcpServer.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sming/Core/Network/TcpConnection.cpp b/Sming/Core/Network/TcpConnection.cpp index 012f56826b..f61560e644 100644 --- a/Sming/Core/Network/TcpConnection.cpp +++ b/Sming/Core/Network/TcpConnection.cpp @@ -433,7 +433,7 @@ err_t TcpConnection::internalOnConnected(err_t err) debug_d("SSL: Switching to 160 MHz"); System.setCpuFrequency(eCF_160MHz); // For shorter waiting time, more power consumption. #endif - debug_d("SSL: handshake start (%d ms)", millis()); + debug_d("SSL: handshake start"); ssl_ctx_free(sslContext); sslContext = ssl_ctx_new(SSL_CONNECT_IN_PARTS | localSslOptions, 1); @@ -537,7 +537,7 @@ err_t TcpConnection::internalOnReceive(pbuf* p, err_t err) if(read_bytes == 0) { if(!sslConnected && ssl_handshake_status(ssl) == SSL_OK) { sslConnected = true; - debug_d("SSL: Handshake done (%d ms).", millis()); + debug_d("SSL: Handshake done"); #ifndef SSL_SLOW_CONNECT debug_d("SSL: Switching back to 80 MHz"); System.setCpuFrequency(eCF_80MHz); // Preserve some CPU cycles diff --git a/Sming/Core/Network/TcpServer.cpp b/Sming/Core/Network/TcpServer.cpp index 4dbd11d966..f467d69677 100644 --- a/Sming/Core/Network/TcpServer.cpp +++ b/Sming/Core/Network/TcpServer.cpp @@ -122,7 +122,7 @@ err_t TcpServer::onAccept(tcp_pcb* clientTcp, err_t err) return ERR_ABRT; } - debug_d("SSL: handshake start (%d ms)", millis()); + debug_d("SSL: handshake start."); client->setSsl(ssl_server_new(sslContext, clientfd)); } #endif