+Define guards

-redundant getter for can controller
This commit is contained in:
@CarlWachter 2024-02-16 14:48:21 +01:00
parent b60ddccad5
commit bfba17245f

View File

@ -138,11 +138,8 @@ namespace sta
Watchdog::instance()->start();
}
#endif // STA_TACOS_WATCHDOG_ENABLED
STA_WEAK
CanController * getCanController(){
extern CAN_HandleTypeDef hcan1;
return new STM32CanController(&hcan1);
}
#ifdef STA_CAN_BUS_ENABLE
/**
* @brief Function that is called before the Can Bus task is started. Override it to adjust
* the Can bus to your specifications.
@ -159,7 +156,7 @@ namespace sta
CanBus::instance(getCanController())->start();
}
#endif //STA_CAN_BUS_ENABLE
} // namespace tacos