Use 100mA current control steps where supported by charger (#477)
This commit is contained in:
parent
3d3d8b42e2
commit
da725b2829
6 changed files with 54 additions and 45 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue