mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-13 18:44:29 +05:00
fix: logic error in build+flash function
This commit is contained in:
@@ -254,10 +254,12 @@ flash_routine(){
|
|||||||
case "$yn" in
|
case "$yn" in
|
||||||
Y|y|Yes|yes|"")
|
Y|y|Yes|yes|"")
|
||||||
echo -e "###### > Yes"
|
echo -e "###### > Yes"
|
||||||
|
FLASH_FIRMWARE="true"
|
||||||
get_mcu_id
|
get_mcu_id
|
||||||
break;;
|
break;;
|
||||||
N|n|No|no)
|
N|n|No|no)
|
||||||
echo -e "###### > No"
|
echo -e "###### > No"
|
||||||
|
FLASH_FIRMWARE="false"
|
||||||
break;;
|
break;;
|
||||||
*)
|
*)
|
||||||
print_unkown_cmd
|
print_unkown_cmd
|
||||||
|
|||||||
@@ -40,10 +40,12 @@ advanced_menu(){
|
|||||||
clear
|
clear
|
||||||
print_header
|
print_header
|
||||||
flash_routine
|
flash_routine
|
||||||
### build in a sleep to give the user a chance to have a look at the
|
if [ $FLASH_FIRMWARE = "true" ]; then
|
||||||
### MCU IDs before directly starting to build the klipper firmware
|
### build in a sleep to give the user a chance to have a look at the
|
||||||
status_msg "Please wait..." && sleep 10 && build_fw
|
### MCU IDs before directly starting to build the klipper firmware
|
||||||
flash_mcu
|
status_msg "Please wait..." && sleep 10 && build_fw
|
||||||
|
flash_mcu
|
||||||
|
fi
|
||||||
print_msg && clear_msg
|
print_msg && clear_msg
|
||||||
advanced_ui;;
|
advanced_ui;;
|
||||||
5)
|
5)
|
||||||
|
|||||||
Reference in New Issue
Block a user