From 5ab2ffb580da0a84cb6ffe88545ec5e4f3d2e6f3 Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Fri, 29 Jan 2021 16:43:34 -0600 Subject: Added pa, mix, dig and dac options to utiltx test --- libloragw/tst/test_loragw_gps.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'libloragw/tst') 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); -- cgit v1.2.3