Swap PL and PS I2C #725
@ -192,9 +192,8 @@ void dummy::createDummies(DummyCfg cfg, PowerSwitchIF& pwrSwitcher, GpioIF* gpio
|
|||||||
new Max31865Dummy(objects::RTD_15_IC18_IMTQ, objects::DUMMY_COM_IF, comCookieDummy));
|
new Max31865Dummy(objects::RTD_15_IC18_IMTQ, objects::DUMMY_COM_IF, comCookieDummy));
|
||||||
|
|
||||||
std::optional<TemperatureSensorInserter::Tmp1075DummyMap> tmpSensorDummies;
|
std::optional<TemperatureSensorInserter::Tmp1075DummyMap> tmpSensorDummies;
|
||||||
TemperatureSensorInserter::Tmp1075DummyMap tmpDummyMap;
|
|
||||||
if (cfg.addTmpDummies) {
|
if (cfg.addTmpDummies) {
|
||||||
tmpSensorDummies = tmpDummyMap;
|
TemperatureSensorInserter::Tmp1075DummyMap tmpDummyMap;
|
||||||
if (cfg.tmp1075Cfg.addTcsBrd0) {
|
if (cfg.tmp1075Cfg.addTcsBrd0) {
|
||||||
tmpDummyMap.emplace(objects::TMP1075_HANDLER_TCS_0,
|
tmpDummyMap.emplace(objects::TMP1075_HANDLER_TCS_0,
|
||||||
new Tmp1075Dummy(objects::TMP1075_HANDLER_TCS_0, objects::DUMMY_COM_IF,
|
new Tmp1075Dummy(objects::TMP1075_HANDLER_TCS_0, objects::DUMMY_COM_IF,
|
||||||
@ -220,6 +219,7 @@ void dummy::createDummies(DummyCfg cfg, PowerSwitchIF& pwrSwitcher, GpioIF* gpio
|
|||||||
new Tmp1075Dummy(objects::TMP1075_HANDLER_IF_BOARD,
|
new Tmp1075Dummy(objects::TMP1075_HANDLER_IF_BOARD,
|
||||||
objects::DUMMY_COM_IF, comCookieDummy));
|
objects::DUMMY_COM_IF, comCookieDummy));
|
||||||
}
|
}
|
||||||
|
tmpSensorDummies = std::move(tmpDummyMap);
|
||||||
}
|
}
|
||||||
new TemperatureSensorInserter(objects::THERMAL_TEMP_INSERTER, rtdSensorDummies,
|
new TemperatureSensorInserter(objects::THERMAL_TEMP_INSERTER, rtdSensorDummies,
|
||||||
tmpSensorDummies);
|
tmpSensorDummies);
|
||||||
|
Loading…
Reference in New Issue
Block a user