~toykeeper/flashlight-firmware/fsm

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/anduril/ramp-mode.c

  • Committer: Selene Scriven
  • Date: 2021-09-01 04:48:13 UTC
  • mto: (483.1.136 anduril2)
  • mto: This revision was merged to the branch mainline in revision 491.
  • Revision ID: bzr@toykeeper.net-20210901044813-f0pbbdi4040y4l2l
reduced length of auto-reverse timing window from ~1000 ms to ~660ms, because it was too fast

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
 
259
259
    else if (event == EV_tick) {
260
260
        // un-reverse after 1 second
261
 
        if (arg == TICKS_PER_SECOND) ramp_direction = 1;
 
261
        if (arg == AUTO_REVERSE_TIME) ramp_direction = 1;
262
262
 
263
263
        #ifdef USE_SUNSET_TIMER
264
264
        // reduce output if shutoff timer is active