kopia lustrzana https://github.com/bristol-seds/pico-tracker
[gps-dummy] Flash LED a bit
rodzic
dbd1c20f08
commit
1b05de3987
|
@ -35,7 +35,7 @@
|
|||
#include "sercom/usart.h"
|
||||
#include "gps.h"
|
||||
#include "watchdog.h"
|
||||
|
||||
#include "init.h"
|
||||
|
||||
volatile enum gps_error_t gps_error_state;
|
||||
|
||||
|
@ -108,6 +108,13 @@ struct gps_data_t gps_get_data(void)
|
|||
|
||||
float lat_deg, lon_deg;
|
||||
|
||||
for(int i = 0; i < 6; i++) {
|
||||
for(int j = 0; j < 1000*150; j++);
|
||||
led_toggle();
|
||||
kick_the_watchdog();
|
||||
}
|
||||
led_off();
|
||||
|
||||
switch(dummy_seq) {
|
||||
|
||||
/* 144.8 */
|
||||
|
|
Ładowanie…
Reference in New Issue