Skip to content

Commit

Permalink
Forgot to save!
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyweiss committed May 2, 2024
1 parent a8359cd commit 40433b8
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions scenes/mag_scene_saved_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,6 @@ void mag_scene_saved_menu_on_enter(void* context) {
Mag* mag = context;
Submenu* submenu = mag->submenu;

// messy code to quickly check which tracks are available for emulation/display
// there's likely a better spot to do this, but the MagDevice functions don't have access to the full mag struct...
bool is_empty_t1 = furi_string_empty(mag->mag_dev->dev_data.track[0].str);
bool is_empty_t2 = furi_string_empty(mag->mag_dev->dev_data.track[1].str);
bool is_empty_t3 = furi_string_empty(mag->mag_dev->dev_data.track[2].str);

if(!is_empty_t1 && !is_empty_t2) {
mag->state.track = MagTrackStateOneAndTwo;
} else if(!is_empty_t1) {
mag->state.track = MagTrackStateOne;
} else if(!is_empty_t2) {
mag->state.track = MagTrackStateTwo;
} else if(!is_empty_t3) {
mag->state.track = MagTrackStateThree;
} // TODO: what happens if no track data present?

submenu_add_item(
submenu, "Emulate", SubmenuIndexEmulate, mag_scene_saved_menu_submenu_callback, mag);
//submenu_add_item(
Expand Down

0 comments on commit 40433b8

Please sign in to comment.