瀏覽代碼

Update warning message

jblanked 1 年之前
父節點
當前提交
532b588503
共有 1 個文件被更改,包括 11 次插入8 次删除
  1. 11 8
      app.c

+ 11 - 8
app.c

@@ -21,23 +21,26 @@ int32_t flip_library_app(void *p)
         return -1;
         return -1;
     }
     }
 
 
-    if(app_instance->uart_text_input_buffer_ssid != NULL &&
-       app_instance->uart_text_input_buffer_password != NULL) {
+    if (app_instance->uart_text_input_buffer_ssid != NULL &&
+        app_instance->uart_text_input_buffer_password != NULL)
+    {
         // Try to wait for pong response.
         // Try to wait for pong response.
         uint8_t counter = 10;
         uint8_t counter = 10;
-        while(fhttp.state == INACTIVE && --counter > 0) {
+        while (fhttp.state == INACTIVE && --counter > 0)
+        {
             FURI_LOG_D(TAG, "Waiting for PONG");
             FURI_LOG_D(TAG, "Waiting for PONG");
             furi_delay_ms(100);
             furi_delay_ms(100);
         }
         }
 
 
-        if(counter == 0) {
-            DialogsApp* dialogs = furi_record_open(RECORD_DIALOGS);
-            DialogMessage* message = dialog_message_alloc();
+        if (counter == 0)
+        {
+            DialogsApp *dialogs = furi_record_open(RECORD_DIALOGS);
+            DialogMessage *message = dialog_message_alloc();
             dialog_message_set_header(
             dialog_message_set_header(
-                message, "WIFI NOT RESPONDING", 64, 0, AlignCenter, AlignTop);
+                message, "[FlipperHTTP Error]", 64, 0, AlignCenter, AlignTop);
             dialog_message_set_text(
             dialog_message_set_text(
                 message,
                 message,
-                "Ensure ESP32 is connected\nand latest FlipperHTTP\nfirmware is installed.",
+                "Ensure your WiFi Developer\nBoard or Pico W is connected\nand the latest FlipperHTTP\nfirmware is installed.",
                 0,
                 0,
                 63,
                 63,
                 AlignLeft,
                 AlignLeft,