diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/includes/GPIO/usart.h | 3 | ||||
-rw-r--r-- | src/common/src/GPS/gps.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/common/includes/GPIO/usart.h b/src/common/includes/GPIO/usart.h index ed7d441..681d86f 100644 --- a/src/common/includes/GPIO/usart.h +++ b/src/common/includes/GPIO/usart.h @@ -48,6 +48,9 @@ void usart_init(void); // Needs running scheduler void usart_gps_init(void); +// Take GPS out of RESET +void usart_gps_remove_reset(void); + // Send the str to the GPS receiver void usart_gps_puts(const char* str); diff --git a/src/common/src/GPS/gps.c b/src/common/src/GPS/gps.c index 3ac2c52..cfc9782 100644 --- a/src/common/src/GPS/gps.c +++ b/src/common/src/GPS/gps.c @@ -66,7 +66,10 @@ int gps_utctime(struct tm *timeutc) { static char rxbuf[RXBUF_LEN]; static void gps_task(void __attribute__ ((unused))*pvParameters) { - // Periodically reinit the GPS + + // The initialisation placed the GPS into reset + usart_gps_remove_reset(); + while (1) { taskYIELD(); |