remove debugging prints

This commit is contained in:
Jeff Epler 2022-12-08 14:18:22 -06:00
parent 170918995c
commit 243ecc2502
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
1 changed files with 0 additions and 4 deletions

View File

@ -208,15 +208,12 @@ void common_hal_wifi_radio_stop_ap(wifi_radio_obj_t *self) {
static bool connection_unchanged(wifi_radio_obj_t *self, const uint8_t *ssid, size_t ssid_len) {
if (cyw43_tcpip_link_status(&cyw43_state, CYW43_ITF_STA) != CYW43_LINK_UP) {
mp_printf(&mp_plat_print, "(not connected)\n");
return false;
}
if (ssid_len != self->connected_ssid_len) {
mp_printf(&mp_plat_print, "(length mismatch)\n");
return false;
}
if (memcmp(ssid, self->connected_ssid, self->connected_ssid_len)) {
mp_printf(&mp_plat_print, "(ssid mismatch)\n");
return false;
}
return true;
@ -240,7 +237,6 @@ wifi_radio_error_t common_hal_wifi_radio_connect(wifi_radio_obj_t *self, uint8_t
uint64_t deadline = start + timeout_ms;
if (connection_unchanged(self, ssid, ssid_len)) {
mp_printf(&mp_plat_print, "re-used existing wifi connection");
return WIFI_RADIO_ERROR_NONE;
}