[AE-51] BHY2.delay() only works when NiclaConfig set to NICLA_BLE
aliphys opened this issue · comments
Describe the Problem
An alternative delay function is provided as part of the ArduinoBHY2 library. Defined as follows:
nicla-sense-me-fw/Arduino_BHY2/src/Arduino_BHY2.cpp
Lines 156 to 166 in b442527
The while segment is only activated when the NiclaConfig enumerator is set to NICLA_BLE.
nicla-sense-me-fw/Arduino_BHY2/src/Arduino_BHY2.h
Lines 34 to 39 in b442527
Expected behaviour
🙂 While loop does not rely on the bleHandler class
🙂 Regardless of the NiclaConfig enumeration, the delay loop will operate as intended.