Skip to content

Commit

Permalink
move dfu flash to advanced menu (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
krautech committed Dec 9, 2024
1 parent 1371675 commit 3279703
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,11 +590,6 @@ def main_menu(self) -> None:
+ Utils.colored_text("[For Flashing via USB]", Color.YELLOW),
self.usb.menu,
),
3: Menu.Item(
"DFU "
+ Utils.colored_text("[For Flashing with DFU via USB]", Color.YELLOW),
self.dfu.menu,
),
}

# Add advanced or basic options
Expand Down Expand Up @@ -628,6 +623,10 @@ def add_advanced_options(
if is_advanced:
# Add advanced options
menu_items[len(menu_items) + 1] = Menu.Separator()
menu_items[len(menu_items) + 1] = Menu.Item(
Utils.colored_text("Flash via DFU", Color.MAGENTA), self.dfu.menu
)
menu_items[len(menu_items) + 1] = Menu.Separator()
menu_items[len(menu_items) + 1] = Menu.Item(
Utils.colored_text("Switch Flash Mode", Color.CYAN), self.mode_menu
)
Expand Down

0 comments on commit 3279703

Please sign in to comment.