Fixed can still having errors when both boards are deactivated

This commit is contained in:
CommanderRedYT
2022-05-31 12:49:21 +02:00
parent 0c81c96e46
commit 11b9564b07

View File

@ -265,6 +265,9 @@ void sendCanCommands()
static uint32_t can_sequential_error_cnt = 0;
static uint32_t can_sequential_bus_errors = 0;
if (!configs.controllerHardware.sendFrontCanCmd.value() && !configs.controllerHardware.sendBackCanCmd.value())
return;
constexpr auto send = [](uint32_t addr, auto value){
twai_message_t message;
twai_status_info_t status_info;