corneliusmunz / legoino

Arduino Library for controlling Powered UP and Boost controllers
MIT License
257 stars 34 forks source link

init() returns immediately if already scanning #73

Open DavidPowell opened 2 years ago

DavidPowell commented 2 years ago

Replaces PR #72 with a simpler solution.

Within the init() function, check whether a scan is already ongoing. If so, return immediately. This prevents resets from repeated initalisation within a loop.

Closes #60.