@@ -53,6 +53,8 @@ static void gps_uart_parse_nmea(GpsUart* gps_uart, char* line)
53
53
gps_uart -> status .time_hours = frame .time .hours ;
54
54
gps_uart -> status .time_minutes = frame .time .minutes ;
55
55
gps_uart -> status .time_seconds = frame .time .seconds ;
56
+
57
+ notification_message_block (gps_uart -> notifications , & sequence_blink_green_10 );
56
58
}
57
59
} break ;
58
60
@@ -70,6 +72,8 @@ static void gps_uart_parse_nmea(GpsUart* gps_uart, char* line)
70
72
gps_uart -> status .time_hours = frame .time .hours ;
71
73
gps_uart -> status .time_minutes = frame .time .minutes ;
72
74
gps_uart -> status .time_seconds = frame .time .seconds ;
75
+
76
+ notification_message_block (gps_uart -> notifications , & sequence_blink_magenta_10 );
73
77
}
74
78
} break ;
75
79
@@ -164,6 +168,8 @@ GpsUart* gps_uart_enable()
164
168
gps_uart -> status .fix_quality = 0 ;
165
169
gps_uart -> status .satellites_tracked = 0 ;
166
170
171
+ gps_uart -> notifications = furi_record_open (RECORD_NOTIFICATION );
172
+
167
173
gps_uart -> thread = furi_thread_alloc ();
168
174
furi_thread_set_name (gps_uart -> thread , "GpsUartWorker" );
169
175
furi_thread_set_stack_size (gps_uart -> thread , 1024 );
@@ -180,5 +186,8 @@ void gps_uart_disable(GpsUart* gps_uart)
180
186
furi_thread_flags_set (furi_thread_get_id (gps_uart -> thread ), WorkerEvtStop );
181
187
furi_thread_join (gps_uart -> thread );
182
188
furi_thread_free (gps_uart -> thread );
189
+
190
+ furi_record_close (RECORD_NOTIFICATION );
191
+
183
192
free (gps_uart );
184
193
}
0 commit comments