thorrak / tiltbridge

Tilt Hydrometer to WiFi Bridge
http://www.tiltbridge.com/
Other
61 stars 27 forks source link

Simplify tiltScanner::scan. #99

Closed pletch closed 3 years ago

pletch commented 3 years ago

Nimble provides a library boolean which indicates if a scan is in progress eliminating the need for m_scan_active flag. The race condition issue mentioned in code comments has also been addressed through recent Nimble commits removing need to explicitly stop scan. Simplified the code and removed the callback function that is not currently used other than to set the removed m_scan_active flag.