mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
hid: fix flashing hid using avrdude 8.0 (#188)
Closes: pikvm/pikvm#1482
This commit is contained in:
parent
87f78990a5
commit
49695247a5
@ -24,8 +24,8 @@ upload:
|
||||
bash -ex -c " \
|
||||
current=`cat .current`; \
|
||||
if [ '$($@_CURRENT)' == 'spi' ] || [ '$($@_CURRENT)' == 'aum' ]; then \
|
||||
gpioset 0 25=1; \
|
||||
gpioset 0 25=0; \
|
||||
gpioset -c gpiochip0 -t 30ms,0 25=1; \
|
||||
gpioset -c gpiochip0 -t 30ms,0 25=0; \
|
||||
fi \
|
||||
"
|
||||
platformio run --environment '$($@_CURRENT)' --project-conf 'platformio-$($@_CONFIG).ini' --target upload
|
||||
|
||||
@ -2,6 +2,7 @@ programmer
|
||||
id = "rpi";
|
||||
desc = "RPi SPI programmer";
|
||||
type = "linuxspi";
|
||||
prog_modes = PM_ISP;
|
||||
reset = 25;
|
||||
baudrate = 400000;
|
||||
;
|
||||
|
||||
@ -82,8 +82,6 @@ build_flags =
|
||||
-DCDC_DISABLED
|
||||
upload_protocol = custom
|
||||
upload_flags =
|
||||
-C
|
||||
$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
|
||||
-C
|
||||
+avrdude-rpi.conf
|
||||
-P
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user