Skip to content

Commit

Permalink
Added comments to common code
Browse files Browse the repository at this point in the history
  • Loading branch information
doofy-dev committed Oct 24, 2022
1 parent a06020c commit 5375d3a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion blackjack/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ Settings load_settings() {
if (!flipper_format_file_open_existing(file, CONFIG_FILE_PATH)) {
FURI_LOG_E(APP_NAME, "Error opening existing file %s", CONFIG_FILE_PATH);
flipper_format_file_close(file);
} else {
}
else {
uint32_t value;
bool valueBool;
FURI_LOG_D(APP_NAME, "Checking version");
Expand Down
Binary file modified builds/unleashed_blackjack.fap
Binary file not shown.
Binary file modified builds/vanilla_blackjack.fap
Binary file not shown.
3 changes: 2 additions & 1 deletion common/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ void add_menu(Menu *menu, const char *name, void (*callback)(void *)) {
for (uint8_t i = 0; i < menu->menu_count; i++) {
menu->items[i] = items[i];
}
free(items);

menu->items[menu->menu_count] = (MenuItem) {name, true, callback};
menu->menu_count++;
free(items);
}

void free_menu(Menu *menu) {
Expand Down

0 comments on commit 5375d3a

Please sign in to comment.