mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
silence most warnings
This commit is contained in:
parent
eb71681779
commit
e083f9b386
|
@ -335,6 +335,7 @@ static void _planetary_hours(movement_settings_t *settings, planetary_hours_stat
|
|||
// PUBLIC WATCH FACE FUNCTIONS ////////////////////////////////////////////////
|
||||
|
||||
void planetary_hours_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr) {
|
||||
(void) watch_face_index;
|
||||
(void) settings;
|
||||
if (*context_ptr == NULL) {
|
||||
*context_ptr = malloc(sizeof(planetary_hours_state_t));
|
||||
|
|
|
@ -205,7 +205,7 @@ static void _planetary_time(movement_event_t event, movement_settings_t *setting
|
|||
char ruler[3];
|
||||
double night_hour_count = 0.0;
|
||||
uint8_t weekday, planet, planetary_hour;
|
||||
double hour_duration, current_hour, current_minute, current_second, second_duration;
|
||||
double hour_duration, current_hour, current_minute, current_second;
|
||||
|
||||
watch_set_colon();
|
||||
|
||||
|
@ -271,6 +271,7 @@ static void _planetary_time(movement_event_t event, movement_settings_t *setting
|
|||
// PUBLIC WATCH FACE FUNCTIONS ////////////////////////////////////////////////
|
||||
|
||||
void planetary_time_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr) {
|
||||
(void) watch_face_index;
|
||||
(void) settings;
|
||||
if (*context_ptr == NULL) {
|
||||
*context_ptr = malloc(sizeof(planetary_time_state_t));
|
||||
|
|
|
@ -83,7 +83,7 @@ static void _display_percentage(float percentage, char *buf) {
|
|||
|
||||
/// @brief draw the current state to the display
|
||||
static void _draw(time_left_state_t *state, uint8_t subsecond) {
|
||||
char buf[14];
|
||||
char buf[17];
|
||||
watch_display_character(_state_titles[state->current_page][0], 0);
|
||||
watch_display_character(_state_titles[state->current_page][1], 1);
|
||||
watch_display_character(' ', 2);
|
||||
|
|
Loading…
Reference in a new issue