Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust-training-esp32c3/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ -f ${HOME}/build-in/Cargo.toml ]; then
exit 1
;;
esac
cd espressif-trainings/${PROJECT_PATH}
cd std-training/${PROJECT_PATH}
cp ${HOME}/build-in/Cargo.toml Cargo.toml
fi

Expand Down
6 changes: 5 additions & 1 deletion rust-training-esp32c3/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -ef

export IDF_PATH="/home/esp/.espressif/frameworks/esp-idf"
export IDF_TOOLS_PATH=/home/esp/.espressif
. /home/esp/.espressif/frameworks/esp-idf/export.sh
export ESP_IDF_TOOLS_INSTALL_DIR=fromenv

echo "Compiling $1"

cd /home/esp/std-training/$1
Expand All @@ -17,5 +22,4 @@ if [ -f cfg.toml.example ]; then
sed -i 's/mqtt_host = "yourpc.local"/mqtt_host = "host"/g' cfg.toml
fi

$HOME/.cargo/bin/cargo clean
$HOME/.cargo/bin/cargo build --release