use newest hex file when flasing
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 27 Apr 2015 13:14:22 +0000 (15:14 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 27 Apr 2015 13:14:22 +0000 (15:14 +0200)
wlan_si/Makefile

index 77db1f5..b1b4134 100644 (file)
@@ -4,7 +4,7 @@ all:
 pi=10.60.1.201
 
 flash:
-       scp /tmp/build*.tmp/*.hex pi@${pi}:/tmp/arduino.hex
+       scp `ls -t /tmp/build*.tmp/*.hex | head -1` pi@${pi}:/tmp/arduino.hex
        ssh pi@${pi} sudo avrdude -c linuxgpio -p atmega328p -U flash:w:/tmp/arduino.hex
 
 serial: