fix: small flash routine rework + user input validation

This commit is contained in:
th33xitus
2021-07-04 20:09:25 +02:00
parent 765f016ea2
commit d3726733e5
2 changed files with 46 additions and 49 deletions

View File

@@ -44,7 +44,7 @@ advanced_menu(){
clear && print_header
flash_routine
if [ $FLASH_FIRMWARE = "true" ]; then
status_msg "Please wait..." && sleep 5 && build_fw
status_msg "Please wait..." && sleep 3 && build_fw
select_mcu_id
fi
print_msg && clear_msg
@@ -53,7 +53,7 @@ advanced_menu(){
clear && print_header
flash_routine_sd
if [ $FLASH_FW_SD = "true" ]; then
status_msg "Please wait..." && sleep 5 && build_fw
status_msg "Please wait..." && sleep 3 && build_fw
select_mcu_id
fi
print_msg && clear_msg