From 90df4aaefb930ab05a6763c96866e8db0faf698e Mon Sep 17 00:00:00 2001 From: Charlie Chiang Date: Sun, 26 Nov 2023 11:42:36 +0800 Subject: [PATCH] chore: add message about adapter is disabled Signed-off-by: Charlie Chiang --- cmd.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd.go b/cmd.go index 9bc5ee1..4c9ddbf 100644 --- a/cmd.go +++ b/cmd.go @@ -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() }