diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2021-01-29 16:43:34 -0600 |
---|---|---|
committer | Harsh Sharma <harsh.sharma@multitech.com> | 2021-01-29 16:43:34 -0600 |
commit | 5ab2ffb580da0a84cb6ffe88545ec5e4f3d2e6f3 (patch) | |
tree | a0155012b7478230f518d020c8a3d5c4a18ba7f4 /libloragw | |
parent | 03a003c56355b7597c68711ce95424285b66d311 (diff) | |
download | lora_gateway_mtac_full-5ab2ffb580da0a84cb6ffe88545ec5e4f3d2e6f3.tar.gz lora_gateway_mtac_full-5ab2ffb580da0a84cb6ffe88545ec5e4f3d2e6f3.tar.bz2 lora_gateway_mtac_full-5ab2ffb580da0a84cb6ffe88545ec5e4f3d2e6f3.zip |
Added pa, mix, dig and dac options to utiltx test
Diffstat (limited to 'libloragw')
-rw-r--r-- | libloragw/tst/test_loragw_gps.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libloragw/tst/test_loragw_gps.c b/libloragw/tst/test_loragw_gps.c index bb84068..994c0ad 100644 --- a/libloragw/tst/test_loragw_gps.c +++ b/libloragw/tst/test_loragw_gps.c @@ -51,8 +51,6 @@ struct tref ppm_ref; /* --- PRIVATE FUNCTIONS DECLARATION ---------------------------------------- */ static void sig_handler(int sigio); -static void gps_process_sync(void); -static void gps_process_coords(void); /* -------------------------------------------------------------------------- */ /* --- PRIVATE FUNCTIONS DEFINITION ----------------------------------------- */ @@ -82,13 +80,8 @@ int main() char serial_buff[128]; /* buffer to receive GPS data */ /* NMEA/UBX variables */ - enum gps_msg latest_msg = UNKNOWN; /* keep track of latest NMEA/UBX message parsed */ static struct tref time_reference_gps; /* time reference used for GPS <-> timestamp conversion */ - fd_set fds; - char delim[4] = "$"; - char *token[254]; - /* configure signal handling */ sigemptyset(&sigact.sa_mask); sigact.sa_flags = 0; @@ -135,7 +128,6 @@ int main() while ((quit_sig != 1) && (exit_sig != 1)) { wait_ms(100); int r = gps_read(&gpsdata, 0, 0); - int used=0; if (r!= -1 && (gpsdata.status != STATUS_NO_FIX) && (gpsdata.fix.mode == MODE_2D || gpsdata.fix.mode == MODE_3D) && !isnan(gpsdata.fix.latitude) && @@ -148,7 +140,7 @@ int main() lgw_gps_sync(&time_reference_gps, trig_tstamp, gpsdata.fix.time); printf("\n--- GPS ---\n"); - printf("Set: %d\n", gpsdata.set); + printf("Set: %lld\n", gpsdata.set); printf("Online: %10.0f\n", gpsdata.online); printf("Status: %d\n", gpsdata.status); printf("Satellites Used: %d\n", gpsdata.satellites_used); |