Update postRTOS.cpp
This commit is contained in:
@@ -11,6 +11,9 @@
|
|||||||
#include "task.h"
|
#include "task.h"
|
||||||
|
|
||||||
bool hall_effect_present = false;
|
bool hall_effect_present = false;
|
||||||
|
extern "C" {
|
||||||
|
void ble_stack_start(void);
|
||||||
|
};
|
||||||
void postRToSInit() {
|
void postRToSInit() {
|
||||||
// Any after RTos setup
|
// Any after RTos setup
|
||||||
#ifdef HALL_SI7210
|
#ifdef HALL_SI7210
|
||||||
@@ -18,6 +21,7 @@ void postRToSInit() {
|
|||||||
hall_effect_present = Si7210::init();
|
hall_effect_present = Si7210::init();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
ble_stack_start();
|
||||||
}
|
}
|
||||||
int16_t getRawHallEffect() {
|
int16_t getRawHallEffect() {
|
||||||
if (hall_effect_present) {
|
if (hall_effect_present) {
|
||||||
|
|||||||
Reference in New Issue
Block a user