The following script will automatically update the Homeduino. Unfortunately, it does not really work…
does anyone have an idea?
Script start
#!/bin/bash
cd /opt/pimatic-app/homeduino/
git pull
make upload
Script end
Error
make reset
make[1]: Entering directory ‘/opt/pimatic-app/homeduino’
/opt/pimatic-app/homeduino/arduino-mk/bin/ard-reset-arduino /dev/ttyUSB0
make[1]: Leaving directory '/opt/pimatic-app/homeduino’
make do_upload
make[1]: Entering directory ‘/opt/pimatic-app/homeduino’
/usr/bin/avrdude -q -V -D -p atmega328p -c arduino -b 57600 -P /dev/ttyUSB0
-U flash:w:build-nano328/homeduino.hex:i
avrdude: stk500_getsync(): not in sync: resp=0xda
avrdude done. Thank you.
/opt/pimatic-app/homeduino/arduino-mk/Arduino.mk:1292: recipe for target ‘do_upload’ failed
make[1]: *** [do_upload] Error 1
make[1]: Leaving directory ‘/opt/pimatic-app/homeduino’
/opt/pimatic-app/homeduino/arduino-mk/Arduino.mk:1284: recipe for target ‘upload’ failed
make: *** [upload] Error 2