~toykeeper/flashlight-firmware/fsm

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/fsm-misc.c

  • Committer: Selene ToyKeeper
  • Date: 2023-05-30 13:59:02 UTC
  • mto: (483.1.175 anduril2)
  • mto: This revision was merged to the branch mainline in revision 491.
  • Revision ID: bzr@toykeeper.net-20230530135902-u02m8a9vmpk7h42k
make sure blink_digit(0) uses the same timing as the rest of the UI
(BLINK_ONCE_TIME)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
    // "zero" digit gets a single short blink
32
32
    uint8_t ontime = BLINK_SPEED * 2 / 12;
33
 
    if (!num) { ontime = 8; num ++; }
 
33
    if (!num) { ontime = BLINK_ONCE_TIME; num ++; }
34
34
 
35
35
    #ifdef BLINK_CHANNEL
36
36
    // channel is set per blink, to prevent issues