AmendHub

Download:

jcs

/

wifi_da

/

amendments

/

30

window: We can't use WiFiPasswordDialogFieldFilter for SSID, duh


jcs made amendment 30 3 months ago
--- wi-fi.h Tue Sep 17 20:22:36 2024 +++ wi-fi.h Thu Sep 19 20:12:30 2024 @@ -21,7 +21,7 @@ #include "util.h" /* disable in production */ -//#define DEBUG_LOGGING 1 +#define DEBUG_LOGGING 1 #define MAIN_MENU_ID 1 #define MAIN_MENU_ABOUT_ID 1 --- window.c Tue Sep 17 20:38:48 2024 +++ window.c Thu Sep 19 20:28:57 2024 @@ -223,7 +223,8 @@ update_wifi_ssid_list(bool update_networks) if (update_networks) { nwifi_scan_networks = scsi_wifi_scan_results(wifi_scsi_id, wifi_scan_networks, nitems(wifi_scan_networks)); - DEBUG_LOG(("scsi_wifi_scan_results: %d", nwifi_scan_networks)); + DEBUG_LOG(("scsi_wifi_scan_results: %d networks", + nwifi_scan_networks)); if (nwifi_scan_networks == 0) { memcpy(&wifi_scan_networks, &wifi_cur_info, @@ -232,6 +233,8 @@ update_wifi_ssid_list(bool update_networks) } } + DEBUG_LOG(("current info: ssid:%s", wifi_cur_info.ssid)); + /* put the current network first, if any */ memcpy(&wifi_menu_networks[0], &wifi_cur_info, sizeof(wifi_menu_networks[0])); @@ -400,7 +403,7 @@ window_mousedown(Point p) PenNormal(); for (;;) { - ModalDialog(WiFiPasswordDialogFieldFilter, &hit); + ModalDialog(ModalDialogFilter, &hit); if (hit == ok || hit == cancel) break; }