diff options
Diffstat (limited to 'src/simulator')
-rw-r--r-- | src/simulator/src/Core/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulator/src/Core/main.c b/src/simulator/src/Core/main.c index 215ead5..a73306d 100644 --- a/src/simulator/src/Core/main.c +++ b/src/simulator/src/Core/main.c @@ -160,7 +160,7 @@ static void thread_gui_gps(void __attribute__ ((unused))*arg) { if (gui_gps_send_current_time) { - sprintf(gps_frame_buffer + gps_buffer_pointer, "%02d%02d%02d", t->tm_mday, t->tm_mon, t->tm_year - 100); + sprintf(gps_frame_buffer + gps_buffer_pointer, "%02d%02d%02d", t->tm_mday, t->tm_mon + 1, t->tm_year - 100); } else { strcpy(gps_frame_buffer + gps_buffer_pointer, "000000"); @@ -173,7 +173,7 @@ static void thread_gui_gps(void __attribute__ ((unused))*arg) { day = t->tm_mday; } if (!gui_gps_custom_month_on) { - mon = t->tm_mon; + mon = t->tm_mon + 1; } if (!gui_gps_custom_year_on) { year = t->tm_year - 100; |