Skip to content

Commit

Permalink
Merge pull request #758 from Electrical-Age/bugfix/#753
Browse files Browse the repository at this point in the history
Fixes #753
  • Loading branch information
cm0x4D authored Aug 16, 2017
2 parents 1787712 + 427346b commit ed437d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/mods/eln/sim/BatteryProcess.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ public BatteryProcess(VoltageState positiveLoad, VoltageState negativeLoad, Func

@Override
public void process(double time) {
// Utils.print("*");
Q -= voltageSource.getCurrent() * time / QNominal;
Q = Math.max(Q - voltageSource.getCurrent() * time / QNominal, 0);

double voltage = computeVoltage();

Expand Down

0 comments on commit ed437d4

Please sign in to comment.