chore: use const

This commit is contained in:
andig 2022-03-15 10:20:20 +00:00
parent 016dffb756
commit 3d9be7b157

View file

@ -78,7 +78,7 @@ func runCharger(cmd *cobra.Command, args []string) {
var flagUsed bool
for _, v := range chargers {
if current >= 6 {
if current != noCurrent {
flagUsed = true
if err := v.MaxCurrent(current); err != nil {