|
@@ -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,
|