Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfeismann committed Nov 15, 2024
1 parent 6b74778 commit 96a7dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/edu/ie3/simona/model/participant/HpModel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ final case class HpModel(
val (newActivePower, newThermalPower) =
if (isRunning)
(pRated, pThermal)
else if (lastStateStorageqDot < zeroKW)
(zeroKW, lastStateStorageqDot * (-1))
else if (lastStateStorageQDot < zeroKW)
(zeroKW, lastStateStorageQDot * (-1))
else (zeroKW, zeroKW)

/* Push thermal energy to the thermal grid and get its updated state in return */
Expand Down

0 comments on commit 96a7dfb

Please sign in to comment.