diff options
author | Drashna Jael're <drashna@live.com> | 2022-11-06 09:05:52 -0800 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2022-11-06 09:05:52 -0800 |
commit | d9e559a78e88e13ee8e5ad951d8bf3e6386f50c3 (patch) | |
tree | 5388948a1cf7977c9d8f3d527878937349d82e9c /platforms | |
parent | 219afaba42e6b4384f578977eadbb71a03383ecc (diff) | |
parent | e3a97eb1c8b97ff37412913e53f34cb7918497f1 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/avr/flash.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platforms/avr/flash.mk b/platforms/avr/flash.mk index 4c4ac70512..9c2ab72410 100644 --- a/platforms/avr/flash.mk +++ b/platforms/avr/flash.mk @@ -78,7 +78,7 @@ AVRDUDE_PROGRAMMER ?= avrdude define EXEC_AVRDUDE list_devices() { \ if $(GREP) -q -s icrosoft /proc/version; then \ - wmic.exe path Win32_SerialPort get DeviceID 2>/dev/null | LANG=C perl -pne 's/COM(\d+)/COM.($$1-1)/e' | sed 's!COM!/dev/ttyS!' | xargs echo -n | sort; \ + powershell.exe 'Get-CimInstance -Class Win32_SerialPort | Select -ExpandProperty "DeviceID"' 2>/dev/null | sed -e "s/\r//g" | LANG=C perl -pne 's/COM(\d+)/COM.($$1-1)/e' | sed 's!COM!/dev/ttyS!' | sort; \ elif [ "`uname`" = "FreeBSD" ]; then \ ls /dev/tty* | grep -v '\.lock$$' | grep -v '\.init$$'; \ else \ |