Skip to content

Commit

Permalink
Adjust state change condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel7004 committed Jan 21, 2022
1 parent 7ee5cf8 commit a618e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/circuit/charging_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (s *chargingState) GetLoadVoltage() float64 {
}

func (s *chargingState) ChangeState() {
if s.circ.gapTriggerVoltage-s.circ.voltagesCap[0] < 0.0001 {
if s.circ.gapTriggerVoltage-s.circ.voltagesCap[0] < 0.1 {
s.circ.state = newDischargingState(s.circ)
}
}

0 comments on commit a618e87

Please sign in to comment.