stop ser2net to avoid conflicts when uploading

This commit is contained in:
Nicu Hodos 2022-10-12 16:20:40 +02:00
parent 77c6c06a6a
commit 0cd557f4d5

View File

@ -10,9 +10,11 @@ platform:
steps: steps:
- name: upload - name: upload
commands: commands:
- service ser2net stop
- cd gateway - cd gateway
- pio run -e pro-mini - pio run -e pro-mini
- echo -n 'reset' > /dev/ttyUSB0; sleep 1s; avrdude -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:.pio/build/pro-mini/firmware.hex:i -v - echo -n 'reset' > /dev/ttyUSB0; sleep 1s; avrdude -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:.pio/build/pro-mini/firmware.hex:i -v
- service ser2net start
when: when:
target: target:
- production - production