Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(stm32CubeProg): use getopt and extend options #97

Merged
merged 5 commits into from
Jun 20, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix(maple_upload): review output redirection
Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Mar 30, 2024
commit 75e067fe69ba6f38d44f64a7d1cfef143eb1531e
8 changes: 4 additions & 4 deletions maple_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ do
fi
done

printf "Waiting for %s serial..." "${dummy_port_fullpath}" >&2
printf "Waiting for %s serial..." "${dummy_port_fullpath}"
COUNTER=40
if [ ${OS_DIR} = "win" ]; then
while [ $COUNTER -gt 0 ]; do
if ! "${DIR}/${OS_DIR}/check_port${EXT}" "${dummy_port_fullpath}"; then
COUNTER=$((COUNTER - 1))
printf "." >&2
printf "."
sleep 0.1
else
break
Expand All @@ -86,7 +86,7 @@ if [ ${OS_DIR} = "win" ]; then
else
while [ ! -r "${dummy_port_fullpath}" ] && [ $COUNTER -gt 0 ]; do
COUNTER=$((COUNTER - 1))
printf "." >&2
printf "."
sleep 0.1
done
fi
Expand All @@ -95,5 +95,5 @@ if [ $COUNTER -eq -0 ]; then
echo " Timed out." >&2
exit 1
else
echo " Done." >&2
echo " Done."
fi