fix missing prototype warnings

This commit is contained in:
Joey Castillo
2021-12-05 23:49:26 -06:00
parent ed94efcb85
commit e202c48b0a
46 changed files with 241 additions and 233 deletions

View File

@@ -12,7 +12,7 @@
// Pressing the alarm button enters the log mode, where the main display shows the number of interrupts detected in each of the last
// 24 hours (the hour is shown in the top right digit and AM/PM indicator, if the clock is set to 12 hour mode)
void _lis2dh_logging_face_log_data(lis2dh_logger_state_t *logger_state) {
static void _lis2dh_logging_face_log_data(lis2dh_logger_state_t *logger_state) {
watch_date_time date_time = watch_rtc_get_date_time();
date_time.unit.hour = (date_time.unit.hour + 23) % 24; // log this as the number of events in the previous hour
size_t pos = logger_state->data_points % LIS2DH_LOGGING_NUM_DATA_POINTS;

View File

@@ -3,7 +3,7 @@
#include "voltage_face.h"
#include "watch.h"
void _voltage_face_update_display() {
static void _voltage_face_update_display(void) {
char buf[14];
float voltage = (float)watch_get_vcc_voltage() / 1000.0;
sprintf(buf, "BA %4.2f V", voltage);