Skip to content

Commit

Permalink
The compilation was failing due to missing millis. They are not neede…
Browse files Browse the repository at this point in the history
…d anyway because the debug statements contain already the timestamp. (#1853)
  • Loading branch information
slaff authored Sep 29, 2019
1 parent a9b2cdb commit 5bdff55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sming/Core/Network/TcpConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sming/Core/Network/TcpServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5bdff55

Please sign in to comment.