Skip to content

Commit

Permalink
Merge pull request #4 from brainelectronics/bugfix/sleep-after-provid…
Browse files Browse the repository at this point in the history
…ing-latest-scan-data

sleep after adding latest found nets to message not before
  • Loading branch information
brainelectronics authored Feb 20, 2022
2 parents 15f76d9 + 6f43dcd commit 2ce43a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-->

## [Unreleased]
## [0.1.1] - 2022-02-19
### Fixed
- Sleep after adding the latest found networks to the asyncio message, not
before

## Released
## [0.1.0] - 2022-02-19
Expand Down
4 changes: 2 additions & 2 deletions wifi_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,10 @@ def _scan(self,
found_nets = wh.get_wifi_networks_sorted(rescan=True,
scan_if_empty=True)

msg.set(found_nets)

# wait for specified time
time.sleep_ms(scan_interval)

msg.set(found_nets)
except KeyboardInterrupt:
break

Expand Down

0 comments on commit 2ce43a2

Please sign in to comment.