diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2021-12-05 23:49:26 -0600 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2021-12-10 12:00:26 -0500 |
commit | 762af872d2f2c977e51d6e51b8c3ad622485cc05 (patch) | |
tree | 0fd44fe4996b04a82c5c0cc46178b5893d3ae1c0 /apps/buzzer-test/app.c | |
parent | 316e1f292c603885f2af3dcd69ce797d64776425 (diff) | |
download | Sensor-Watch-762af872d2f2c977e51d6e51b8c3ad622485cc05.tar.gz Sensor-Watch-762af872d2f2c977e51d6e51b8c3ad622485cc05.tar.bz2 Sensor-Watch-762af872d2f2c977e51d6e51b8c3ad622485cc05.zip |
fix missing prototype warnings
Diffstat (limited to 'apps/buzzer-test/app.c')
-rw-r--r-- | apps/buzzer-test/app.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/buzzer-test/app.c b/apps/buzzer-test/app.c index 58158dff..65d2356c 100644 --- a/apps/buzzer-test/app.c +++ b/apps/buzzer-test/app.c @@ -9,18 +9,18 @@ typedef struct ApplicationState { ApplicationState application_state; -void cb_alarm_pressed() { +void cb_alarm_pressed(void) { application_state.play = true; } -void app_init() { +void app_init(void) { memset(&application_state, 0, sizeof(application_state)); } -void app_wake_from_backup() { +void app_wake_from_backup(void) { } -void app_setup() { +void app_setup(void) { watch_register_extwake_callback(BTN_ALARM, cb_alarm_pressed, true); watch_enable_display(); @@ -28,14 +28,14 @@ void app_setup() { watch_enable_buzzer(); } -void app_prepare_for_standby() { +void app_prepare_for_standby(void) { watch_display_string(" rains ", 2); } -void app_wake_from_standby() { +void app_wake_from_standby(void) { } -bool app_loop() { +bool app_loop(void) { if (application_state.play) { printf("Playing song...\n"); const BuzzerNote rains[] = { |