mirror of
https://github.com/joeycastillo/second-movement.git
synced 2025-10-29 11:38:27 +00:00
peek face: silence warnings
This commit is contained in:
parent
8fdcd78a44
commit
65c15461b1
@ -42,7 +42,7 @@ void peek_memory_face_setup(uint8_t watch_face_index, void ** context_ptr) {
|
||||
state->location = &dummy_value;
|
||||
state->format = PEEK_MEMORY_FORMAT_HEX;
|
||||
#else
|
||||
state->location = &(RTC->MODE2.TIMESTAMP.reg);
|
||||
state->location = (void *)&(RTC->MODE2.TIMESTAMP.reg);
|
||||
state->format = PEEK_MEMORY_FORMAT_DATE;
|
||||
#endif
|
||||
}
|
||||
@ -64,7 +64,7 @@ bool peek_memory_face_loop(movement_event_t event, void *context) {
|
||||
memcpy(&value, state->location, 4);
|
||||
switch (state->format) {
|
||||
case PEEK_MEMORY_FORMAT_HEX:
|
||||
sprintf(buf, "%08X", value);
|
||||
sprintf(buf, "%08lX", value);
|
||||
watch_display_character('M', 0);
|
||||
watch_display_character(buf[0], 1);
|
||||
watch_display_character(buf[1], 10);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user