Skip to content

Commit

Permalink
fixes some identation
Browse files Browse the repository at this point in the history
  • Loading branch information
carvilsi committed Sep 20, 2024
1 parent ec297fd commit 10d33ab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,11 @@ The data is:
|------|-----|---------|----------|--------------|
| 0 | 1 | 2 | 3 | 2 |

---

**Note:** main branch works with latest version of FlipperZero firmware, **1.0.1** (in the moment of writting this).
If you want to have this app running with a firmware version < 1.* check the *legacy-previous-API-1* at the repo.

---

<3 & Hack the Planet!
16 changes: 8 additions & 8 deletions wifi_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,24 +328,24 @@ static void wifi_map_app_free(WiFiMapApp* app) {

int32_t wifi_map_app(void *p)
{
UNUSED(p);
FURI_LOG_I(TAG, "wifi_map_app starting...");
WiFiMapApp* app = wifi_map_app_alloc();
UNUSED(p);
FURI_LOG_I(TAG, "wifi_map_app starting...");
WiFiMapApp* app = wifi_map_app_alloc();
DateTime rtc = {0};
furi_hal_rtc_get_datetime(&rtc);
FuriString *datetime = furi_string_alloc();
furi_string_printf(datetime, "##### %d-%d-%d_%d:%d:%d #####\n",
rtc.day, rtc.month, rtc.year, rtc.hour, rtc.minute, rtc.second);
if (!storage_file_write(
app->file,
furi_string_get_cstr(datetime),
furi_string_size(datetime))) {
FURI_LOG_E(TAG, "Failed to write to file");
app->file,
furi_string_get_cstr(datetime),
furi_string_size(datetime))) {
FURI_LOG_E(TAG, "Failed to write to file");
}
view_dispatcher_run(app->view_dispatcher);
furi_string_free(datetime);
wifi_map_app_free(app);
return 0;
return 0;
}

// Screen is 128x64 px
Expand Down

0 comments on commit 10d33ab

Please sign in to comment.