Use 100mA current control steps where supported by charger (#477)

This commit is contained in:
andig 2020-12-02 10:05:53 +01:00 • committed by GitHub
parent 3d3d8b42e2
commit da725b2829
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 54 additions and 45 deletions

View file

@ -65,6 +65,11 @@ type Charger interface {
MaxCurrent(current int64) error
}
// ChargerEx provides milli-amp precision charger current control
type ChargerEx interface {
MaxCurrentMillis(current float64) error
}
// Diagnosis is a helper interface that allows to dump diagnostic data to console
type Diagnosis interface {
Diagnosis()