Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
caila-marashaj committed Dec 4, 2024
1 parent e056fa2 commit 1fe8095
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,15 @@ struct SimThermalPolicy : public m24128_test_policy::TestM24128Policy {
return _fan * MAX_RPM;
}

auto last_reset_reason() -> uint16_t { return _reset_reason; }

auto set_reset_reason(uint16_t sim_reason) -> void {
_reset_reason = sim_reason;
}

private:
bool _enabled = false;
double _power = 0.0F; // Positive for heat, negative for cool
double _fan = 0.0F;
uint16_t _reset_reason = 0;
};
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ static void save_reset_reason() {
reset_reason |= LSIRDY;
}
// brown out
else if (__HAL_RCC_GET_FLAG(RCC_FLAG_PORRST)) {
else if (__HAL_RCC_GET_FLAG(RCC_FLAG_BORRST)) {
reset_reason |= BORRST;
}
// option byte-loader reset
Expand Down

0 comments on commit 1fe8095

Please sign in to comment.