From 487c21f16a373e4b4e4beb5f8a8f653c7d91cb76 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 31 Mar 2022 18:04:55 +0200 Subject: [PATCH] fixes --- bsp_linux_board/ObjectFactory.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bsp_linux_board/ObjectFactory.cpp b/bsp_linux_board/ObjectFactory.cpp index 09a1001a..b1ae6005 100644 --- a/bsp_linux_board/ObjectFactory.cpp +++ b/bsp_linux_board/ObjectFactory.cpp @@ -76,13 +76,20 @@ void ObjectFactory::produce(void* args) { createRpiAcsBoard(gpioIF, spiDev); #endif -#if OBSW_ADD_SUN_SENSORS == 1 +#if OBSW_ADD_SUN_SENSORS == 1 || defined(OBSW_ADD_RTD_DEVICES) #ifdef RASPBERRY_PI rpi::gpio::initSpiCsDecoder(gpioIF); #endif +#endif + +#if OBSW_ADD_SUN_SENSORS == 1 createSunSensorComponents(gpioIF, spiComIF, pwrSwitcher, spi::DEV); #endif +#if OBSW_ADD_RTD_DEVICES == 1 + createRtdComponents(spi::DEV, gpioIF, pwrSwitcher); +#endif + #if OBSW_ADD_TEST_CODE == 1 createTestTasks(); #endif /* OBSW_ADD_TEST_CODE == 1 */