add upgrade alert message

This commit is contained in:
Terrence
2025-01-16 05:43:07 +08:00
parent e98c80df44
commit 7731f5f1ac
6 changed files with 18 additions and 12 deletions

View File

@@ -60,10 +60,10 @@ void Ml307Board::WaitForNetworkReady() {
display->SetStatus("等待网络...");
int result = modem_.WaitForNetworkReady();
if (result == -1) {
application.Alert("Error", "PIN is not ready");
application.Alert("Error", "请插入SIM卡");
return;
} else if (result == -2) {
application.Alert("Error", "Registration denied");
application.Alert("Error", "无法接入网络,请检查流量卡状态");
return;
}

View File

@@ -53,9 +53,6 @@ void WifiBoard::EnterWifiConfigMode() {
auto& wifi_ap = WifiConfigurationAp::GetInstance();
wifi_ap.SetSsidPrefix("Xiaozhi");
wifi_ap.Start();
// 播报配置 WiFi 的提示
application.Alert("Info", "Configuring WiFi");
// 显示 WiFi 配置 AP 的 SSID 和 Web 服务器 URL
std::string hint = "请在手机上连接热点 ";
@@ -65,6 +62,9 @@ void WifiBoard::EnterWifiConfigMode() {
display->SetStatus(hint);
// 播报配置 WiFi 的提示
application.Alert("Info", "进入配网模式");
// Wait forever until reset after configuration
while (true) {
int free_sram = heap_caps_get_free_size(MALLOC_CAP_INTERNAL);