Changed CAN bus macros to be dependent on TACOS settings

This commit is contained in:
dario 2024-09-30 10:07:59 +02:00
parent 6c92ad7735
commit 1c8891a357

View File

@ -124,7 +124,7 @@ namespace sta
} }
#endif // STA_TACOS_WATCHDOG_ENABLED #endif // STA_TACOS_WATCHDOG_ENABLED
#ifdef STA_CAN_BUS_ENABLE #ifdef STA_TACOS_CAN_BUS_ENABLE
/** /**
* @brief Function that is called before the Can Bus task is started. Override it to adjust * @brief Function that is called before the Can Bus task is started. Override it to adjust
* the Can bus to your specifications. * the Can bus to your specifications.
@ -141,7 +141,7 @@ namespace sta
CanBus::instance()->start(); CanBus::instance()->start();
} }
#endif //STA_CAN_BUS_ENABLE #endif //STA_TACOS_CAN_BUS_ENABLE
} // namespace tacos } // namespace tacos
@ -162,9 +162,9 @@ namespace sta
tacos::initWatchdog(); tacos::initWatchdog();
#endif // STA_TACOS_WATCHDOG_ENABLED #endif // STA_TACOS_WATCHDOG_ENABLED
#ifdef STA_CAN_BUS_ENABLE #ifdef STA_TACOS_CAN_BUS_ENABLE
tacos::initCanBus(); tacos::initCanBus();
#endif // STA_CAN_BUS_ENABLE #endif // STA_TACOS_CAN_BUS_ENABLE
} }
} // namespace rtos } // namespace rtos
} // namespace sta } // namespace sta