From 4d3ee90dc98035b3d303f3d0a340d3e5043274a0 Mon Sep 17 00:00:00 2001 From: ZhouYixun <291028775@qq.com> Date: Fri, 9 Dec 2022 20:54:41 +0800 Subject: [PATCH] fix: battery print bugs2 --- src/entity/batteryInfo.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/entity/batteryInfo.go b/src/entity/batteryInfo.go index 3553951..693bafb 100644 --- a/src/entity/batteryInfo.go +++ b/src/entity/batteryInfo.go @@ -100,8 +100,9 @@ func (battery BatteryList) ToString() string { return "" } for key, e := range battery.DeviceBatteryInfo { - fmt.Println("udId:" + key) + fmt.Sprintf("udId:%s\n", key) fmt.Println(e.ToString()) + fmt.Println("") } return "" }