Skip to content

Commit

Permalink
chore: add message about adapter is disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Chiang <[email protected]>
  • Loading branch information
charlie0129 committed Nov 26, 2023
1 parent e37df99 commit 90df4aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,11 @@ func NewStatusCommand() *cobra.Command {
cmd.Print(", because your current charge is above the lower limit. Charging will be allowed after current charge drops below the lower limit.")
}
if pluggedIn && currentCharge < low {
cmd.Print(". However, if no manual intervention is involved, charging should be allowed soon. Wait for 5 minutes and come back.")
if adapter {
cmd.Print(". However, if no manual intervention is involved, charging should be allowed soon. Wait for 5 minutes and come back.")
} else {
cmd.Print(", because adapter is disabled.")
}
}
cmd.Println()
}
Expand Down

0 comments on commit 90df4aa

Please sign in to comment.