Open aliphys opened 1 year ago
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.
while
NICLA_BLE
https://github.com/arduino/nicla-sense-me-fw/blob/b4425275859b2dea1ec22c546851106df9ac8fb5/Arduino_BHY2/src/Arduino_BHY2.h#L34-L39
🙂 While loop does not rely on the bleHandler class 🙂 Regardless of the NiclaConfig enumeration, the delay loop will operate as intended.
bleHandler
NiclaConfig
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 toNICLA_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 theNiclaConfig
enumeration, the delay loop will operate as intended.