mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
Merge #19823
19823: dist/tools/usb-serial: call ttys.py with its path r=maribu a=dylad ### Contribution description This PR provides a fix for #19805 When calling `SERIAL=xxx make flash` the command failed because the script `dist/tools/usb-serial/find-ttys.sh` tries to call `ttys.py` but it doesn't find it. So pass the full path to `ttys.py` to get rid of the problem. ### Testing procedure Connect at least two boards to your computer run `make list-ttys ` to get the ID of your boards Try to flash one of them with (replace SERIAL with the one you get with the previous command): `BOARD=xxx SERIAL=xxx make -C tests/leds flash` It fails on master. It should works with this PR. ### Issues/PRs references Fixes #19805 Co-authored-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
This commit is contained in:
commit
b482a713a3
3
dist/tools/usb-serial/find-tty.sh
vendored
3
dist/tools/usb-serial/find-tty.sh
vendored
@ -6,8 +6,9 @@
|
||||
|
||||
exit_code=1
|
||||
|
||||
SCRIPTDIR="$(cd "$(dirname "$0")" || exit 1; pwd)"
|
||||
for serial in "$@"; do
|
||||
if ./ttys.py --format path --serial "$serial"; then
|
||||
if "$SCRIPTDIR"/ttys.py --format path --serial "$serial"; then
|
||||
exit_code=0
|
||||
fi
|
||||
done
|
||||
|
||||
3
dist/tools/usb-serial/list-ttys.sh
vendored
3
dist/tools/usb-serial/list-ttys.sh
vendored
@ -3,4 +3,5 @@
|
||||
# Public License v2.1. See the file LICENSE in the top level directory for more
|
||||
# details.
|
||||
|
||||
./ttys.py --format path
|
||||
SCRIPTDIR="$(cd "$(dirname "$0")" || exit 1; pwd)"
|
||||
"$SCRIPTDIR"/ttys.py --format path
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user