Skip to content

Commit 0bd6239

Browse files
fpistmkbumsik
andcommitted
[MP1] Update upload tool
Remove '.ino' from sketch name Co-Authored-By: Bumsik Kim <[email protected]> Signed-off-by: Frederic Pillon <[email protected]>
1 parent 6cad3a8 commit 0bd6239

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

run_arduino_gen.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,11 @@ case "$1" in
219219
TERM=xterm minicom -D $RPMSG_DIR
220220
;;
221221
generate)
222-
generate_packaged_script $2 $3
223-
echo "$(readlink -f "$3") generated successfully."
222+
output=$(echo "$3" | sed 's/\.ino\././g')
223+
generate_packaged_script $2 $output
224+
echo "$(readlink -f "$output") generated successfully."
224225
echo "This file should be uploaded manually by SCP, SFTP, Kermit, or etc."
225-
echo "Then run \"sh ./$(basename $3) start\" command in the board's console."
226+
echo "Then run \"sh ./$(basename $output) start\" command in the board's console."
226227
echo "For detailed instructions, please visit:"
227228
echo " https://github.com/stm32duino/Arduino_Core_STM32/tree/master/variants/STM32MP157_DK/README.md"
228229
;;

0 commit comments

Comments
 (0)