Closed loathingKernel closed 9 years ago
Great PR, though the behavior should probably match the behavior in C. I had kind of assumed it did, I guess I was wrong >_>
I agree completely that making it not require a setting is better. This commit matches more or less directly the way it is being done in the C code. Should I try to reduce code duplication while still having the same behavior or do you prefer it to be similar to the way it is done in C?
Feel free to write it not idiomatically, Lua is certainly not C
:+1:
In my case, the battery charge paths where named "charge_now" and "charge_full" rather than "energy_now" and "energy_full". This change enables the user to set their own prefix if it is needed.