Small bugfix and adapted naming

This commit is contained in:
dario
2024-05-22 11:04:54 +02:00
parent 6933decf26
commit 556a8c91a4
4 changed files with 11 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
#include <sta/config.hpp>
#ifdef STA_CAN_BUS_ENABLE
#ifdef STA_TACOS_CAN_BUS_ENABLED
#include <sta/tacos/can_bus.hpp>
#include <sta/debug/assert.hpp>
@@ -161,4 +161,4 @@ namespace sta {
} // namespace tacos
} // namespace sta
#endif // STA_CAN_BUS_ENABLE
#endif // STA_TACOS_CAN_BUS_ENABLED

View File

@@ -26,6 +26,7 @@ namespace sta
Statemachine::instance()->requestTimedStateTransition(from, to, millis, lockout);
}
#ifdef STA_TACOS_CAN_BUS_ENABLED
bool queueCanBusMsg(CanSysMsg & msg, uint32_t timeout){
return CanBus::instance()->queueCanBusMsg(msg, timeout);
}
@@ -42,6 +43,7 @@ namespace sta
return CanBus::instance()->queueCanBusMsg(msg, lockout);
}
#endif // STA_TACOS_CAN_BUS_ENABLED
} // namespace tacos
} // namespace sta