diff options
Diffstat (limited to 'libloragw/tst/test_loragw_gps.c')
-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; } |