diff options
Diffstat (limited to 'spaghetti-monster')
| -rw-r--r-- | spaghetti-monster/anduril/anduril.c | 10 | ||||
| -rwxr-xr-x | spaghetti-monster/anduril/build-all.sh | 12 |
2 files changed, 17 insertions, 5 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c index 2ee18e8..3d25c8c 100644 --- a/spaghetti-monster/anduril/anduril.c +++ b/spaghetti-monster/anduril/anduril.c @@ -19,8 +19,8 @@ */ /********* User-configurable options *********/ -// Physical driver type -#define FSM_EMISAR_D4_DRIVER +// Physical driver type (uncomment one of the following or define it at the gcc command line) +//#define FSM_EMISAR_D4_DRIVER //#define FSM_BLF_Q8_DRIVER //#define FSM_FW3A_DRIVER //#define FSM_BLF_GT_DRIVER @@ -1644,7 +1644,7 @@ void loop() { set_level(bike_flasher_brightness); if (! nice_delay_ms(65)) return; } - if (! nice_delay_ms(720)) return; + nice_delay_ms(720); // no return check necessary on final delay } // party / tactical strobe else if (st < 3) { @@ -1659,7 +1659,7 @@ void loop() { nice_delay_ms(del >> 1); } set_level(0); - nice_delay_ms(del); + nice_delay_ms(del); // no return check necessary on final delay } #ifdef USE_LIGHTNING_MODE // lightning storm @@ -1704,7 +1704,7 @@ void loop() { rand_time = 1 << (pseudo_rand() % 13); rand_time += pseudo_rand() % rand_time; set_level(0); - nice_delay_ms(rand_time); + nice_delay_ms(rand_time); // no return check necessary on final delay } #endif diff --git a/spaghetti-monster/anduril/build-all.sh b/spaghetti-monster/anduril/build-all.sh new file mode 100755 index 0000000..4100805 --- /dev/null +++ b/spaghetti-monster/anduril/build-all.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +for TARGET in \ + BLF_GT \ + BLF_Q8 \ + EMISAR_D4 \ + FW3A \ + ; do + echo "===== $TARGET =====" + ../../../bin/build-85.sh anduril "-DFSM_${TARGET}_DRIVER" + mv -f anduril.hex anduril.$TARGET.hex +done |
