~digitalcircuit/flashlight-firmware/anduril2_buttonled_bright_default_ramp_level

« back to all changes in this revision

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

  • Committer: Selene Scriven
  • Date: 2021-08-12 09:00:11 UTC
  • Revision ID: bzr@toykeeper.net-20210812090011-t8swu662z87rj939
document the actual maximum for manual memory timer (~140 minutes, not 255)

Show diffs side-by-side

added added

removed removed

Lines of Context:
462
462
    // item 1: disable manual memory, go back to automatic
463
463
    if (step == 1) { manual_memory = 0; }
464
464
    // item 2: set manual memory timer duration
 
465
    // FIXME: should be limited to (65535 / SLEEP_TICKS_PER_MINUTE)
 
466
    //   to avoid overflows or impossibly long timeouts
 
467
    //   (by default, the effective limit is 145, but it allows up to 255)
465
468
    else { manual_memory_timer = value; }
466
469
}
467
470