mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-10 16:45:59 +00:00
+Define guards
-redundant getter for can controller
This commit is contained in:
parent
b60ddccad5
commit
bfba17245f
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user