chore: use const
This commit is contained in:
parent
016dffb756
commit
3d9be7b157
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue