rbaron / b-parasite

🌱💧 An open source DIY soil moisture sensor
1.93k stars 149 forks source link

[ble] __ASSERT initialization & sensor reading #152

Closed rbaron closed 1 year ago

rbaron commented 1 year ago

After we tracked down a rare, annoying bug for the zigbee sample in #150, this PR does something similar for the ble sample. If there's an error either initializing the board of reading the sensors, __ASSERT will reboot the system, instead of letting it hang forever.