Skip to content

Commit

Permalink
add timer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
t-huyeng committed Nov 15, 2022
1 parent f38196b commit aa7b282
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/libpax/libpax_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,14 @@ int libpax_counter_start() {
int libpax_counter_stop() {
wifi_sniffer_stop();
stop_BLE_scan();
xTimerStop(PaxReportTimer, 0);
PaxReportTimer = NULL;
if (PaxReportTimer != NULL) {
xTimerStop(PaxReportTimer, 0);
PaxReportTimer = NULL;
}
return 0;
}


int libpax_counter_count(struct count_payload_t* count) {
fill_counter(count);
return 0;
Expand Down

0 comments on commit aa7b282

Please sign in to comment.