arduino / nicla-sense-me-fw

Arduino Nicla Sense ME resources (libraries, bootloader, host pc utilities)
GNU Affero General Public License v3.0
46 stars 27 forks source link

[AE-51] BHY2.delay() only works when NiclaConfig set to NICLA_BLE #106

Open aliphys opened 1 year ago

aliphys commented 1 year ago

Describe the Problem

An alternative delay function is provided as part of the ArduinoBHY2 library. Defined as follows:

https://github.com/arduino/nicla-sense-me-fw/blob/b4425275859b2dea1ec22c546851106df9ac8fb5/Arduino_BHY2/src/Arduino_BHY2.cpp#L156-L166

The while segment is only activated when the NiclaConfig enumerator is set to NICLA_BLE.

https://github.com/arduino/nicla-sense-me-fw/blob/b4425275859b2dea1ec22c546851106df9ac8fb5/Arduino_BHY2/src/Arduino_BHY2.h#L34-L39

Expected behaviour

🙂 While loop does not rely on the bleHandler class 🙂 Regardless of the NiclaConfig enumeration, the delay loop will operate as intended.