Tally face sound now uses the preference's beep so decrementing fast can happen immedietly

This commit is contained in:
David Volovskiy
2024-09-08 11:44:01 -04:00
parent 002f5bc242
commit c02ec307ff
2 changed files with 29 additions and 38 deletions

View File

@@ -32,8 +32,7 @@
*
* Alarm
* Press: Decrement
* Hold : On initial value: Toggle Sound
* Else: Fast Decrement
* Hold : Fast Decrement
*
* Light
* Press: Increment
@@ -44,14 +43,15 @@
* Press: Next face
* Hold : On initial value: Go to first face.
* Else: Resets counter
*
* Incrementing or Decrementing the tally will beep if Beeping is set in the global Preferences
*/
#include "movement.h"
typedef struct {
int16_t tally_idx;
uint8_t tally_default_idx : 7;
bool soundOff;
uint8_t tally_default_idx;
} tally_state_t;
@@ -60,7 +60,7 @@ void tally_face_activate(movement_settings_t *settings, void *context);
bool tally_face_loop(movement_event_t event, movement_settings_t *settings, void *context);
void tally_face_resign(movement_settings_t *settings, void *context);
void print_tally(tally_state_t *state);
void print_tally(tally_state_t *state, bool sound_on);
#define tally_face ((const watch_face_t){ \
tally_face_setup, \