diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2020-02-03 16:17:19 -0600 |
---|---|---|
committer | Harsh Sharma <harsh.sharma@multitech.com> | 2020-02-03 16:17:19 -0600 |
commit | dea57d6f29246434173c33c56850708c51fc5b23 (patch) | |
tree | 9934346f5279640039a45d3fca37f54f4b3ece04 /libloragw/tst/test_loragw_gps.c | |
parent | 228116b1958515947d208149cccbb8c9a9a6ab83 (diff) | |
download | lora_gateway_mtac_full-dea57d6f29246434173c33c56850708c51fc5b23.tar.gz lora_gateway_mtac_full-dea57d6f29246434173c33c56850708c51fc5b23.tar.bz2 lora_gateway_mtac_full-dea57d6f29246434173c33c56850708c51fc5b23.zip |
Added spi dev option to reg utility and added error checking for lgw_connect, cleaned up unused variables in src_loragw_gps.c
Diffstat (limited to 'libloragw/tst/test_loragw_gps.c')
-rw-r--r-- | libloragw/tst/test_loragw_gps.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libloragw/tst/test_loragw_gps.c b/libloragw/tst/test_loragw_gps.c index 6e644f8..fd8c61b 100644 --- a/libloragw/tst/test_loragw_gps.c +++ b/libloragw/tst/test_loragw_gps.c @@ -146,11 +146,9 @@ int main() /* serial variables */ char serial_buff[128]; /* buffer to receive GPS data */ - size_t wr_idx = 0; /* pointer to end of chars in buffer */ - int gps_tty_dev; /* file descriptor to the serial port of the GNSS module */ /* NMEA/UBX variables */ - enum gps_msg latest_msg; /* keep track of latest NMEA/UBX message parsed */ + enum gps_msg latest_msg = UNKNOWN; /* keep track of latest NMEA/UBX message parsed */ fd_set fds; char delim[4] = "$"; |