coarseCurrent returns true if charger or vehicle require full amp steps
()
| 911 | |
| 912 | // coarseCurrent returns true if charger or vehicle require full amp steps |
| 913 | func (lp *Loadpoint) coarseCurrent() bool { |
| 914 | return !api.HasCap[api.ChargerEx](lp.charger) || lp.vehicleHasFeature(api.CoarseCurrent) |
| 915 | } |
| 916 | |
| 917 | // roundedCurrent rounds current down to full amps if charger or vehicle require it |
| 918 | func (lp *Loadpoint) roundedCurrent(current float64) float64 { |
no test coverage detected