diff options
Diffstat (limited to 'main/default-to-gsm.patch')
-rw-r--r-- | main/default-to-gsm.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/default-to-gsm.patch b/main/default-to-gsm.patch new file mode 100644 index 0000000..98de0a3 --- /dev/null +++ b/main/default-to-gsm.patch @@ -0,0 +1,20 @@ +diff --git a/movement/watch_faces/complication/sunrise_sunset_face.c b/movement/watch_faces/complication/sunrise_sunset_face.c +index 1d08bb0..9bd3369 100644 +--- a/movement/watch_faces/complication/sunrise_sunset_face.c ++++ b/movement/watch_faces/complication/sunrise_sunset_face.c +@@ -49,8 +49,15 @@ static void _sunrise_sunset_face_update(movement_settings_t *settings, sunrise_s + movement_location_t movement_location = (movement_location_t) watch_get_backup_data(1); + + if (movement_location.reg == 0) { ++#if 0 + watch_display_string("RI no Loc", 0); + return; ++#else ++ // Obviously we're at the east end of GSM ++ movement_location.bit.latitude = 5221; ++ movement_location.bit.longitude = 12; ++ watch_store_backup_data(movement_location.reg, 1); ++#endif + } + + watch_date_time date_time = watch_rtc_get_date_time(); // the current local date / time |