Skip to content

Commit

Permalink
feat: small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
epiccurious committed Dec 19, 2023
1 parent 4a04e44 commit d23c171
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bash_validation_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
sh_checker_shellcheck_disable: true

- name: Install dependency python3-virtualenv
- name: Install runtime dependency python3-virtualenv
run: sudo apt update && sudo apt install -y python3-virtualenv

- name: Run flash_your_device
Expand Down
7 changes: 3 additions & 4 deletions flash_your_device
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ else
echo -e "\nWhich device do you want to flash?"
PS3='Please enter the number for your device or QUIT: '
options=("${device1}" "${device2}" "${device3}" "${device4}" "QUIT")
select choice in "${options[@]}"; do
case "${choice}" in
select chosen_device in "${options[@]}"; do
case "${chosen_device}" in
"${device1}")
tty_device="/dev/ttyACM0"
flash_command="idf.py flash"
Expand Down Expand Up @@ -164,15 +164,14 @@ else
*) echo "You entered ${REPLY}, which is invalid." ;;
esac
done
chosen_device="${choice}"
echo
fi

[ -f sdkconfig ] && rm sdkconfig
sed -i.bak '/CONFIG_DEBUG_MODE/d' ./sdkconfig.defaults
sed -i.bak '1s/^/CONFIG_LOG_DEFUALT_LEVEL_NONE=y\n/' sdkconfig.defaults

echo -n "Creating the Jade firmware... "
echo -n "Building the Jade firmware... "
idf.py build &> /dev/null
echo "ok."

Expand Down

0 comments on commit d23c171

Please sign in to comment.