Skip to content

Commit

Permalink
Fix scan flag reset
Browse files Browse the repository at this point in the history
The scan flag should be reset every iteration to properly wait for scan
results to be displayed.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 committed Dec 11, 2024
1 parent 2686d8f commit 3e5f730
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/scan_bm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ int main(void)
while (1)
{
// Start scanning for WiFi networks
is_scan_done = false;
printf("Starting scan...\n");
CHECK_RET(nrf70_bm_scan_start(&scan_params, scan_result_cb));

Expand Down

0 comments on commit 3e5f730

Please sign in to comment.