diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2022-05-05 17:49:11 -0500 |
---|---|---|
committer | Harsh Sharma <harsh.sharma@multitech.com> | 2022-05-05 17:49:11 -0500 |
commit | f6c2760fa5c4c27014454014d38dffe361a24bac (patch) | |
tree | 34821fc3d92281956ec5245b6df6d78b1dca7091 /libloragw/tst | |
parent | 3b7195f39bb90e269e008adf2736441943ee7f63 (diff) | |
download | lora_gateway_mtac_full-f6c2760fa5c4c27014454014d38dffe361a24bac.tar.gz lora_gateway_mtac_full-f6c2760fa5c4c27014454014d38dffe361a24bac.tar.bz2 lora_gateway_mtac_full-f6c2760fa5c4c27014454014d38dffe361a24bac.zip |
Bug fixes: gps disable should be void, all gps stream invalid results should reset the loop5.0.14
Diffstat (limited to 'libloragw/tst')
-rw-r--r-- | libloragw/tst/test_loragw_gps.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libloragw/tst/test_loragw_gps.c b/libloragw/tst/test_loragw_gps.c index 05ec53c..6efd351 100644 --- a/libloragw/tst/test_loragw_gps.c +++ b/libloragw/tst/test_loragw_gps.c @@ -202,12 +202,8 @@ int main() switch (state) { case GPS_LOST: { - i = lgw_gps_disable(); - if (i == LGW_HAL_SUCCESS) { - printf("INFO: GPS closed successfully\n"); - } else { - printf("WARNING: failed to close GPS successfully\n"); - } + lgw_gps_disable(); + printf("INFO: GPS closed\n"); empty_packet_count = 0; read_fail_count = 0; state = GPS_RECONNECTING; @@ -245,8 +241,8 @@ int main() read_fail_count++; if (read_fail_count > 9) { state = GPS_LOST; - continue; } + continue; } break; } |