blob: 82a47d08a57c4d3413e04f501aa9f4e9b92aa304 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/*
* mars_clock.c
*
* Created: 4/29/2021 11:36:26 PM
* Author: joeycastillo
*/
#include <stdio.h>
#include <math.h>
#include "mars_clock.h"
// note: mars time not working, committing just the earth clock.
void update_display(Watch *watch, struct calendar_date_time date_time) {
char buf[6];
sprintf(&buf[0], "TE %02d%02d%02d", date_time.time.hour, date_time.time.min, date_time.time.sec);
watch_display_string(watch, buf, 0);
}
|