Skip to content
This repository has been archived by the owner on Jun 20, 2020. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lpozdneev committed Mar 25, 2019
1 parent 79e43e0 commit 993b5b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Vehicle/Main_Control_Unit/Main_Control_Unit.ino
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ void parse_can_message() {
if (mc_internal_states.get_inverter_enable_state() && mcu_status.get_state() == MCU_STATE_ENABLING_INVERTER) {
set_state(MCU_STATE_WAITING_READY_TO_DRIVE_SOUND);
}
if (!mc_internal_states.get_inverter_enable_state()) {
if (!mc_internal_states.get_inverter_enable_state() && mcu_status.get_state() == MCU_STATE_READY_TO_DRIVE) {
set_state(MCU_STATE_TRACTIVE_SYSTEM_ACTIVE);
}
}
Expand Down

0 comments on commit 993b5b4

Please sign in to comment.