Skip to content

Commit

Permalink
fix cyphal modules mode
Browse files Browse the repository at this point in the history
  • Loading branch information
PonomarevDA committed Jun 4, 2024
1 parent 853fd34 commit 994ab11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

void CircuitStatus::init() {
health = (CircuitPeriphery::init() < 0) ? Status::FATAL_MALFANCTION : Status::OK;
mode = Mode::OPEARTIONAL;
}

void CircuitStatus::update_params() {
Expand Down
1 change: 1 addition & 0 deletions Src/cyphal_application/modules/setpoint/setpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 994ab11

Please sign in to comment.