diff --git a/custom_bin/changebaud.sh b/custom_bin/changebaud.sh index b466716..3fdff36 100644 --- a/custom_bin/changebaud.sh +++ b/custom_bin/changebaud.sh @@ -11,13 +11,29 @@ subprocess() { 6) selection=1500000;; esac - return $selection + echo $selection +} + +function selectBaud() { + echo -e "\nChanging ESPBAUD\n\t1: 9600\n\t2: 115200\n\t3: 230400\n\t4: 460800\n\t5: 1152000\n\t6: 1500000\n\nEnter Selection: " + read baudRate + echo -e "\n" + case $baudRate in + 1) selection=9600;; + 2) selection=115200;; + 3) selection=230400;; + 4) selection=460800;; + 5) selection=1152000;; + 6) selection=1500000;; + esac + + echo $selection } if [ ! -z $1 ]; then ret="$1" else - ret=subprocess + ret=$(selectBaud) fi echo "ret: $ret" diff --git a/esp-idf-tools-cmd.sh b/esp-idf-tools-cmd.sh index 73d3afc..b488d63 100644 --- a/esp-idf-tools-cmd.sh +++ b/esp-idf-tools-cmd.sh @@ -566,8 +566,8 @@ elif [[ "$arg" == "cron" || "$arg" == "c" ]]; then # full install with warn, sle idfGet="update" sleepMins=0 - messagePTY "\n\nesp-idf-tools action $action started!\nWill reboot with $sleepMins minutes delay when complete!\n\n" handleStart + messagePTY "\n\nesp-idf-tools action $action started!\nWill reboot with $sleepMins minutes delay when complete!\n\n" handleClearInstallLog handleSetupEnvironment handleCustomBins @@ -618,8 +618,8 @@ elif [[ "$arg" == "nukereboot" || "$arg" == "nr" ]]; then sleepMins=1 idfGet="download" - messagePTY "\n\nesp-idf-tools action $action started!\nWill reboot with $sleepMins minutes delay when complete!\n\n" handleStart + messagePTY "\n\nesp-idf-tools action $action started!\nWill reboot with $sleepMins minutes delay when complete!\n\n" handleClearInstallLog handleSetupEnvironment handleCustomBins diff --git a/todo.txt b/todo.txt index 79ee36a..92b9ccc 100644 --- a/todo.txt +++ b/todo.txt @@ -1,5 +1,25 @@ test new pts messaging system integrate + +figure out esp32 disable sanity check + create blank project as master + add Kconfig.projbuild sample + add notes to CMakelists.txt + compiler flags: -zmuldefs + set_source_files_properties(ieee80211_raw_frame_sanity_check.c + PROPERTIES COMPILE_FLAGS + -zmuldefs + ) + + ieee80211_raw_frame_sanity_check.c + ``` +// function to make the esp32 buildin rom function ieee80211_raw_frame_sanity_check always return 0 to kill it +// requires -zmuldefs in compiler flags +extern "C" int ieee80211_raw_frame_sanity_check(int32_t arg, int32_t arg2, int32_t arg3) { + return 0; +} + ``` + function: extern "C" int ieee80211_raw_frame_sanity_check(int32_t arg, int32_t arg2, int32_t arg3) { return 0; } test espinfo audit readme maybe pretty up