fix 3.5 touch freeze: async WiFi scan and GT911 reset.
Scan no longer blocks LVGL; always hw-reset GT911; larger buttons and click areas. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -67,9 +67,14 @@ void wifi_prov_connect_saved();
|
||||
/** 连接指定网络并在成功后写入 NVS */
|
||||
void wifi_prov_connect_to(const char *ssid, const char *password);
|
||||
|
||||
/** 同步扫描,结果写入 out[],返回条数(≤ WIFI_PROV_MAX_SCAN) */
|
||||
/** 同步扫描(会阻塞数秒;门户 HTML 可用)。屏上 UI 请用异步接口。 */
|
||||
int wifi_prov_scan(WifiScanItem *out, int max_items);
|
||||
|
||||
/** 异步扫描:start 后每 loop 调 poll;完成时写入 out 并返回条数,进行中返回 -1。 */
|
||||
bool wifi_prov_scan_start();
|
||||
bool wifi_prov_scan_busy();
|
||||
int wifi_prov_scan_poll(WifiScanItem *out, int max_items);
|
||||
|
||||
/**
|
||||
* SoftAP + 简易 Captive Portal(手机连 CYD-Setup → http://192.168.4.1)
|
||||
* 与屏上配网可并行;配网成功后会自动 stop。
|
||||
|
||||
Reference in New Issue
Block a user