start bpx batt immediately
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

but defer it until the com mode was set to i2c
This commit is contained in:
Robin Müller 2022-04-09 18:56:32 +02:00
parent a5881a238b
commit d5bdc00abf
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -175,12 +175,8 @@ void ObjectFactory::produce(void* args) {
I2cCookie* bpxI2cCookie = new I2cCookie(addresses::BPX_BATTERY, 100, q7s::I2C_DEFAULT_DEV);
BpxBatteryHandler* bpxHandler =
new BpxBatteryHandler(objects::BPX_BATT_HANDLER, objects::I2C_COM_IF, bpxI2cCookie);
#if OBSW_TEST_BPX_BATT == 1
bpxHandler->setToGoToNormalMode(true);
bpxHandler->setStartUpImmediately();
#else
static_cast<void>(bpxHandler);
#endif
//bpxHandler->setStartUpImmediately();
//bpxHandler->setToGoToNormalMode(true);
#endif
new FileSystemHandler(objects::FILE_SYSTEM_HANDLER);