Skip to content

Commit 7735f37

Browse files
committed
add a runtime warning when compiled at 80MHz
1 parent b0c75ac commit 7735f37

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,13 @@ int WiFiClientSecureCtx::_run_until(unsigned target, bool blocking) {
610610
}
611611

612612
bool WiFiClientSecureCtx::_wait_for_handshake() {
613+
614+
#if defined(DEBUG_ESP_PORT)
615+
if constexpr (F_CPU != 160000000L) {
616+
DEBUG_ESP_PORT.printf_P((PGM_P)PSTR("BSSL: Please enable 160MHz build\n"));
617+
}
618+
#endif
619+
613620
_set_handshake_done(false); // refreshes _timeout
614621
while (!_handshake_done && _clientConnected()) {
615622
int ret = _run_until(BR_SSL_SENDAPP);

0 commit comments

Comments
 (0)