Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Nov 27, 2024
1 parent aa00ad5 commit 044b5c2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 21 deletions.
1 change: 1 addition & 0 deletions flip_trader/flip_trader.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ typedef struct {
VariableItem* variable_item_password; // The variable item for the password
TextInput* uart_text_input_ssid; // The text input for the SSID
TextInput* uart_text_input_password; // The text input for the password

char* uart_text_input_buffer_ssid; // Buffer for the text input (SSID)
char* uart_text_input_temp_buffer_ssid; // Temporary buffer for the text input (SSID)
uint32_t uart_text_input_buffer_size_ssid; // Size of the text input buffer (SSID)
Expand Down
15 changes: 6 additions & 9 deletions flip_wifi/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,18 @@ int32_t flip_wifi_main(void* p) {
}

// Thanks to Derek Jamison for the following code snippet:
if (app_instance->uart_text_input_buffer_add_ssid != NULL &&
app_instance->uart_text_input_buffer_add_password != NULL)
{
if(app_instance->uart_text_input_buffer_add_ssid != NULL &&
app_instance->uart_text_input_buffer_add_password != NULL) {
// Try to wait for pong response.
uint8_t counter = 10;
while (fhttp.state == INACTIVE && --counter > 0)
{
while(fhttp.state == INACTIVE && --counter > 0) {
FURI_LOG_D(TAG, "Waiting for PONG");
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(
message, "[FlipperHTTP Error]", 64, 0, AlignCenter, AlignTop);
dialog_message_set_text(
Expand Down
11 changes: 6 additions & 5 deletions flip_wifi/flipper_http/flipper_http.h
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,11 @@ bool flipper_http_process_response_async(bool (*http_request)(void), bool (*pars
* @param view_dispatcher The view dispatcher to use
* @return
*/
void flipper_http_loading_task(bool (*http_request)(void),
bool (*parse_response)(void),
uint32_t success_view_id,
uint32_t failure_view_id,
ViewDispatcher **view_dispatcher);
void flipper_http_loading_task(
bool (*http_request)(void),
bool (*parse_response)(void),
uint32_t success_view_id,
uint32_t failure_view_id,
ViewDispatcher** view_dispatcher);

#endif // FLIPPER_HTTP_H
8 changes: 1 addition & 7 deletions wifi_marauder_companion/scenes/wifi_marauder_scene_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,7 @@ const WifiMarauderItem items[NUM_MENU_ITEMS] = {
NO_ARGS,
FOCUS_CONSOLE_END,
SHOW_STOPSCAN_TIP},
{"Spoof Airtag",
{""},
1,
{"spoofat -t"},
INPUT_ARGS,
FOCUS_CONSOLE_END,
NO_TIP},
{"Spoof Airtag", {""}, 1, {"spoofat -t"}, INPUT_ARGS, FOCUS_CONSOLE_END, NO_TIP},
{"Wardrive",
{"ap", "station", "bt", "bt cont"},
4,
Expand Down

0 comments on commit 044b5c2

Please sign in to comment.