Format Pine code
This commit is contained in:
@@ -1,38 +1,34 @@
|
||||
#include "BSP.h"
|
||||
#include "FreeRTOS.h"
|
||||
#include "I2C_Wrapper.hpp"
|
||||
#include "QC3.h"
|
||||
#include "Settings.h"
|
||||
#include "Si7210.h"
|
||||
#include "cmsis_os.h"
|
||||
#include "fusbpd.h"
|
||||
#include "main.hpp"
|
||||
#include "power.hpp"
|
||||
#include "stdlib.h"
|
||||
#include "task.h"
|
||||
#include "I2C_Wrapper.hpp"
|
||||
#include "fusbpd.h"
|
||||
#include "Si7210.h"
|
||||
|
||||
bool hall_effect_present = false;
|
||||
void postRToSInit() {
|
||||
// Any after RTos setup
|
||||
// Any after RTos setup
|
||||
#ifdef HALL_SI7210
|
||||
if (Si7210::detect()) {
|
||||
hall_effect_present = Si7210::init();
|
||||
}
|
||||
if (Si7210::detect()) {
|
||||
hall_effect_present = Si7210::init();
|
||||
}
|
||||
#endif
|
||||
#ifdef POW_PD
|
||||
//Spawn all of the USB-C processors
|
||||
fusb302_start_processing();
|
||||
// Spawn all of the USB-C processors
|
||||
fusb302_start_processing();
|
||||
#endif
|
||||
|
||||
}
|
||||
int16_t getRawHallEffect() {
|
||||
if (hall_effect_present) {
|
||||
return Si7210::read();
|
||||
}
|
||||
return 0;
|
||||
|
||||
if (hall_effect_present) {
|
||||
return Si7210::read();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool getHallSensorFitted() {
|
||||
return hall_effect_present;
|
||||
}
|
||||
bool getHallSensorFitted() { return hall_effect_present; }
|
||||
|
||||
Reference in New Issue
Block a user