This commit is contained in:
2025-11-18 09:17:52 -07:00
parent 4097ff6a0f
commit 1795c8b4c5
2 changed files with 3 additions and 12 deletions
+1 -2
View File
@@ -5,8 +5,7 @@ echo -e "\nFlashing and Monitoring for $ESPTARGET on $ESPPORT\n"
# if tehre is no CMakeLists.txt in cwd, setup to defaults with idf.py set-target and not setup as that goes through menuconfig # if tehre is no CMakeLists.txt in cwd, setup to defaults with idf.py set-target and not setup as that goes through menuconfig
if [ ! -f "./CMakeLists.txt" ]; then if [ ! -f "./CMakeLists.txt" ]; then
# run the setup tool instead bash setup
setup
fi fi
idf.py --preview flash monitor idf.py --preview flash monitor
+2 -10
View File
@@ -7,31 +7,23 @@ echo -e "\nFully Rebuildan~\n"
bash fullclean bash fullclean
# use setup script instead # use setup script instead
setup bash setup
echo -e "\nErase flash? y/n" echo -e "\nErase flash? y/n"
read wipe read wipe
if [ "$wipe" == "y" ]; then if [ "$wipe" == "y" ]; then
# echo -e "\nExecuting erase-flash\n"
# idf.py --preview erase-flash
# echo -e "\nFlash wiped\n"
bash erase-flash bash erase-flash
fi fi
echo -e "\nRun menuconfig y/n?\n" echo -e "\nRun menuconfig y/n?\n"
read menuconfig read menuconfig
if [ "$menuconfig" == "y" ]; then if [ "$menuconfig" == "y" ]; then
echo -e "\nExecuting menuconfig\n" bash menuconfig
idf.py --preview menuconfig
echo -e "\nConfig Complete\n"
fi fi
echo -e "\nSave as Default Config? y/n?\n" echo -e "\nSave as Default Config? y/n?\n"
read defconfig read defconfig
if [ "$defconfig" == "y" ]; then if [ "$defconfig" == "y" ]; then
# echo -e "\nExecuting save-defconfig\n"
# idf.py --preview save-defconfig
# echo -e "\nDefault Config Saved\n"
bash save-defconfig bash save-defconfig
fi fi