diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-10-16 16:51:36 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-10-16 16:51:36 -0400 |
commit | c27dbc779b252c32370e2cd34a22f51d120d0f38 (patch) | |
tree | e4d4e0603654084639626e5b2756e6f758285701 /movement | |
parent | 05fe055f99b9b950086b1e38a9c795d7e076c5b2 (diff) | |
download | Sensor-Watch-c27dbc779b252c32370e2cd34a22f51d120d0f38.tar.gz Sensor-Watch-c27dbc779b252c32370e2cd34a22f51d120d0f38.tar.bz2 Sensor-Watch-c27dbc779b252c32370e2cd34a22f51d120d0f38.zip |
fix misspelling of pulsometer
Diffstat (limited to 'movement')
-rwxr-xr-x | movement/make/Makefile | 2 | ||||
-rw-r--r-- | movement/movement_config.h | 2 | ||||
-rw-r--r-- | movement/watch_faces/complications/pulseometer_face.h | 25 | ||||
-rw-r--r-- | movement/watch_faces/complications/pulsometer_face.c (renamed from movement/watch_faces/complications/pulseometer_face.c) | 12 | ||||
-rw-r--r-- | movement/watch_faces/complications/pulsometer_face.h | 25 |
5 files changed, 33 insertions, 33 deletions
diff --git a/movement/make/Makefile b/movement/make/Makefile index 8b29fba4..f17fc7e5 100755 --- a/movement/make/Makefile +++ b/movement/make/Makefile @@ -26,7 +26,7 @@ SRCS += \ ../watch_faces/clock/simple_clock_face.c \ ../watch_faces/settings/preferences_face.c \ ../watch_faces/settings/set_time_face.c \ - ../watch_faces/complications/pulseometer_face.c \ + ../watch_faces/complications/pulsometer_face.c \ # Leave this line at the bottom of the file; it has all the targets for making your project. include $(TOP)/rules.mk diff --git a/movement/movement_config.h b/movement/movement_config.h index e95e46c0..6a7aec5a 100644 --- a/movement/movement_config.h +++ b/movement/movement_config.h @@ -4,7 +4,7 @@ #include "simple_clock_face.h" #include "preferences_face.h" #include "set_time_face.h" -#include "pulseometer_face.h" +#include "pulsometer_face.h" const watch_face_t watch_faces[] = { simple_clock_face, diff --git a/movement/watch_faces/complications/pulseometer_face.h b/movement/watch_faces/complications/pulseometer_face.h deleted file mode 100644 index 52bccf24..00000000 --- a/movement/watch_faces/complications/pulseometer_face.h +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef PULSEOMETER_FACE_H_ -#define PULSEOMETER_FACE_H_ - -#include "movement.h" - -typedef struct { - bool measuring; - int16_t pulse; - int16_t ticks; -} PulsometerState; - -void pulseometer_face_setup(movement_settings_t *settings, void ** context_ptr); -void pulseometer_face_activate(movement_settings_t *settings, void *context); -bool pulseometer_face_loop(movement_event_t event, movement_settings_t *settings, void *context); -void pulseometer_face_resign(movement_settings_t *settings, void *context); - -static const watch_face_t pulseometer_face = { - pulseometer_face_setup, - pulseometer_face_activate, - pulseometer_face_loop, - pulseometer_face_resign, - NULL -}; - -#endif // PULSEOMETER_FACE_H_
\ No newline at end of file diff --git a/movement/watch_faces/complications/pulseometer_face.c b/movement/watch_faces/complications/pulsometer_face.c index 7c524b8d..dffdcd35 100644 --- a/movement/watch_faces/complications/pulseometer_face.c +++ b/movement/watch_faces/complications/pulsometer_face.c @@ -1,23 +1,23 @@ #include <stdlib.h> #include <string.h> -#include "pulseometer_face.h" +#include "pulsometer_face.h" #include "watch.h" #define PULSOMETER_FACE_FREQUENCY_FACTOR (4ul) // refresh rate will be 2 to this power Hz (0 for 1 Hz, 2 for 4 Hz, etc.) #define PULSOMETER_FACE_FREQUENCY (1 << PULSOMETER_FACE_FREQUENCY_FACTOR) -void pulseometer_face_setup(movement_settings_t *settings, void ** context_ptr) { +void pulsometer_face_setup(movement_settings_t *settings, void ** context_ptr) { (void) settings; if (*context_ptr == NULL) *context_ptr = malloc(sizeof(PulsometerState)); } -void pulseometer_face_activate(movement_settings_t *settings, void *context) { +void pulsometer_face_activate(movement_settings_t *settings, void *context) { (void) settings; memset(context, 0, sizeof(PulsometerState)); } -bool pulseometer_face_loop(movement_event_t event, movement_settings_t *settings, void *context) { - printf("pulseometer_face_loop\n"); +bool pulsometer_face_loop(movement_event_t event, movement_settings_t *settings, void *context) { + printf("pulsometer_face_loop\n"); (void) settings; PulsometerState *pulsometer_state = (PulsometerState *)context; char buf[14]; @@ -81,7 +81,7 @@ bool pulseometer_face_loop(movement_event_t event, movement_settings_t *settings return true; } -void pulseometer_face_resign(movement_settings_t *settings, void *context) { +void pulsometer_face_resign(movement_settings_t *settings, void *context) { (void) settings; (void) context; } diff --git a/movement/watch_faces/complications/pulsometer_face.h b/movement/watch_faces/complications/pulsometer_face.h new file mode 100644 index 00000000..76af8257 --- /dev/null +++ b/movement/watch_faces/complications/pulsometer_face.h @@ -0,0 +1,25 @@ +#ifndef PULSOMETER_FACE_H_ +#define PULSOMETER_FACE_H_ + +#include "movement.h" + +typedef struct { + bool measuring; + int16_t pulse; + int16_t ticks; +} PulsometerState; + +void pulsometer_face_setup(movement_settings_t *settings, void ** context_ptr); +void pulsometer_face_activate(movement_settings_t *settings, void *context); +bool pulsometer_face_loop(movement_event_t event, movement_settings_t *settings, void *context); +void pulsometer_face_resign(movement_settings_t *settings, void *context); + +static const watch_face_t pulsometer_face = { + pulsometer_face_setup, + pulsometer_face_activate, + pulsometer_face_loop, + pulsometer_face_resign, + NULL +}; + +#endif // PULSOMETER_FACE_H_
\ No newline at end of file |