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 " \
|
bash -ex -c " \
|
||||||
current=`cat .current`; \
|
current=`cat .current`; \
|
||||||
if [ '$($@_CURRENT)' == 'spi' ] || [ '$($@_CURRENT)' == 'aum' ]; then \
|
if [ '$($@_CURRENT)' == 'spi' ] || [ '$($@_CURRENT)' == 'aum' ]; then \
|
||||||
gpioset 0 25=1; \
|
gpioset -c gpiochip0 -t 30ms,0 25=1; \
|
||||||
gpioset 0 25=0; \
|
gpioset -c gpiochip0 -t 30ms,0 25=0; \
|
||||||
fi \
|
fi \
|
||||||
"
|
"
|
||||||
platformio run --environment '$($@_CURRENT)' --project-conf 'platformio-$($@_CONFIG).ini' --target upload
|
platformio run --environment '$($@_CURRENT)' --project-conf 'platformio-$($@_CONFIG).ini' --target upload
|
||||||
|
|||||||
@ -2,6 +2,7 @@ programmer
|
|||||||
id = "rpi";
|
id = "rpi";
|
||||||
desc = "RPi SPI programmer";
|
desc = "RPi SPI programmer";
|
||||||
type = "linuxspi";
|
type = "linuxspi";
|
||||||
|
prog_modes = PM_ISP;
|
||||||
reset = 25;
|
reset = 25;
|
||||||
baudrate = 400000;
|
baudrate = 400000;
|
||||||
;
|
;
|
||||||
|
|||||||
@ -82,8 +82,6 @@ build_flags =
|
|||||||
-DCDC_DISABLED
|
-DCDC_DISABLED
|
||||||
upload_protocol = custom
|
upload_protocol = custom
|
||||||
upload_flags =
|
upload_flags =
|
||||||
-C
|
|
||||||
$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
|
|
||||||
-C
|
-C
|
||||||
+avrdude-rpi.conf
|
+avrdude-rpi.conf
|
||||||
-P
|
-P
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user