Code Readability - Power (#18245)

* power

* dissipate -> do_dissipate

* eye_protection =

* move APC charging #defines out of apc, and reference them in more places
This commit is contained in:
KalevTait
2022-07-17 15:36:46 +01:00
committed by GitHub
parent 391a044df1
commit 694944e461
20 changed files with 157 additions and 139 deletions
+2 -2
View File
@@ -132,8 +132,8 @@
if(A.operating && A.cell)
A.cell.charge = max(0, A.cell.charge - 50)
power_drained += 50
if(A.charging == 2) // If the cell was full
A.charging = 1 // It's no longer full
if(A.charging == APC_FULLY_CHARGED) // If the cell was full
A.charging = APC_IS_CHARGING // It's no longer full
if(drained >= drain_rate)
break