diff --git a/Src/cyphal_application/modules/circuit_status/circuit_status.cpp b/Src/cyphal_application/modules/circuit_status/circuit_status.cpp index 508af20..27d973f 100644 --- a/Src/cyphal_application/modules/circuit_status/circuit_status.cpp +++ b/Src/cyphal_application/modules/circuit_status/circuit_status.cpp @@ -16,6 +16,7 @@ void CircuitStatus::init() { health = (CircuitPeriphery::init() < 0) ? Status::FATAL_MALFANCTION : Status::OK; + mode = Mode::OPEARTIONAL; } void CircuitStatus::update_params() { diff --git a/Src/cyphal_application/modules/setpoint/setpoint.cpp b/Src/cyphal_application/modules/setpoint/setpoint.cpp index 6a779a1..f0b83b7 100644 --- a/Src/cyphal_application/modules/setpoint/setpoint.cpp +++ b/Src/cyphal_application/modules/setpoint/setpoint.cpp @@ -43,6 +43,7 @@ void SetpointModule::init() { PwmPeriphery::init(PwmPin::PWM_4); health = (sub.init() < 0) ? Status::FATAL_MALFANCTION : Status::OK; + mode = Mode::OPEARTIONAL; } void SetpointModule::spin_once() {