feat: KIAUH v4.0.0 #191

Merged
dw-0 merged 453 commits from v4-rc into master 2022-05-29 20:11:16 +02:00
Showing only changes of commit 3ea0623d95 - Show all commits

View File

@@ -105,7 +105,7 @@ function select_mcu_connection(){
#=================== STEP 3 =====================# #=================== STEP 3 =====================#
#================================================# #================================================#
function select_mcu_id(){ function select_mcu_id(){
local i=1 sel_index=0 method=${1} local i=0 sel_index=0 method=${1}
top_border top_border
echo -e "| ${red}!!! ATTENTION !!!${white} |" echo -e "| ${red}!!! ATTENTION !!!${white} |"
hr hr
@@ -115,9 +115,9 @@ function select_mcu_id(){
echo -e "${cyan}###### List of available MCU:${white}" echo -e "${cyan}###### List of available MCU:${white}"
### list all mcus ### list all mcus
for mcu in "${mcu_list[@]}"; do for mcu in "${mcu_list[@]}"; do
i=$((i+1))
mcu=$(echo "${mcu}" | rev | cut -d"/" -f1 | rev) mcu=$(echo "${mcu}" | rev | cut -d"/" -f1 | rev)
echo -e " ● MCU #${i}: ${cyan}${mcu}${white}" echo -e " ● MCU #${i}: ${cyan}${mcu}${white}"
i=$((i+1))
done done
### verify user input ### verify user input
while [[ ! (${sel_index} =~ ^[1-9]+$) ]] || [ "${sel_index}" -gt "${i}" ]; do while [[ ! (${sel_index} =~ ^[1-9]+$) ]] || [ "${sel_index}" -gt "${i}" ]; do