MX 2 лет назад
Родитель
Сommit
b164537029
2 измененных файлов с 11 добавлено и 13 удалено
  1. 1 1
      main_apps_sources/gps_nmea_uart/README.md
  2. 10 12
      main_apps_sources/gps_nmea_uart/gps_uart.h

+ 1 - 1
main_apps_sources/gps_nmea_uart/README.md

@@ -28,7 +28,7 @@ See the tutorial video - https://www.youtube.com/watch?v=5vSGFzEBp-k from
 Lab401 by RocketGod - https://github.com/RocketGod-git for a visual guide to
 the hardware setup.
 
-### Confirmed Compatible Modules
+## Confirmed Compatible Modules
 
 * Adafruit Ultimate GPS Breakout
 * Beitian BN-180

+ 10 - 12
main_apps_sources/gps_nmea_uart/gps_uart.h

@@ -8,8 +8,7 @@
 static const int gps_baudrates[5] = {9600, 19200, 38400, 57600, 115200};
 static int current_gps_baudrate = 0;
 
-typedef struct
-{
+typedef struct {
     bool valid;
     float latitude;
     float longitude;
@@ -24,14 +23,13 @@ typedef struct
     int time_seconds;
 } GpsStatus;
 
-typedef struct
-{
-    FuriMutex *mutex;
-    FuriThread *thread;
-    FuriStreamBuffer *rx_stream;
+typedef struct {
+    FuriMutex* mutex;
+    FuriThread* thread;
+    FuriStreamBuffer* rx_stream;
     uint8_t rx_buf[RX_BUF_SIZE];
 
-    NotificationApp *notifications;
+    NotificationApp* notifications;
     uint32_t baudrate;
     bool changing_baudrate;
     bool backlight_on;
@@ -40,9 +38,9 @@ typedef struct
     GpsStatus status;
 } GpsUart;
 
-void gps_uart_init_thread(GpsUart *gps_uart);
-void gps_uart_deinit_thread(GpsUart *gps_uart);
+void gps_uart_init_thread(GpsUart* gps_uart);
+void gps_uart_deinit_thread(GpsUart* gps_uart);
 
-GpsUart *gps_uart_enable();
+GpsUart* gps_uart_enable();
 
-void gps_uart_disable(GpsUart *gps_uart);
+void gps_uart_disable(GpsUart* gps_uart);