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:
- name: upload
commands:
- service ser2net stop
- cd gateway
- 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
- service ser2net start
when:
target:
- production