refactor: rename start_flash_mcu_sd to start_flash_sd

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-04-17 11:54:07 +02:00
parent 8aab598b8b
commit 011d90e4fa

View File

@@ -144,7 +144,7 @@ function select_mcu_id(){
start_flash_mcu "${selected_mcu_id}" start_flash_mcu "${selected_mcu_id}"
elif [ "${method}" == "sdcard" ]; then elif [ "${method}" == "sdcard" ]; then
log_info "Flashing device '${selected_mcu_id}' with method '${method}'" log_info "Flashing device '${selected_mcu_id}' with method '${method}'"
start_flash_mcu_sd "${selected_mcu_id}" start_flash_sd "${selected_mcu_id}"
else else
error_msg "No flash method set! Aborting..." error_msg "No flash method set! Aborting..."
log_error "No flash method set!" log_error "No flash method set!"
@@ -172,7 +172,7 @@ function start_flash_mcu(){
do_action_service "start" "klipper" do_action_service "start" "klipper"
} }
function start_flash_mcu_sd(){ function start_flash_sd(){
local i=0 board_list=() device=${1} local i=0 board_list=() device=${1}
local flash_script="${HOME}/klipper/scripts/flash-sdcard.sh" local flash_script="${HOME}/klipper/scripts/flash-sdcard.sh"