From 994ab1136257becdf9322be4534d8c866c951b54 Mon Sep 17 00:00:00 2001 From: PonomarevDA Date: Tue, 4 Jun 2024 08:32:14 +0300 Subject: [PATCH] fix cyphal modules mode --- Src/cyphal_application/modules/circuit_status/circuit_status.cpp | 1 + Src/cyphal_application/modules/setpoint/setpoint.cpp | 1 + 2 files changed, 2 insertions(+) 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() {