You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have macos sequoia 15.1 and mac2mqtt run 3 minutes:
drapple@Mac-mini mac2mqtt % ./mac2mqtt
2024/11/09 14:02:56 Started
2024/11/09 14:02:58 Connected to MQTT
2024/11/09 14:02:58 Sending 'true' to topic: mac2mqtt/Mac-mini/status/alive
panic: runtime error: index out of range [1] with length 0
goroutine 34 [running]:
main.getBatteryChargePercent()
/home/runner/work/mac2mqtt/mac2mqtt/main.go:284 +0xac
main.updateBattery({0x1048cd1f0, 0x140000c8788})
/home/runner/work/mac2mqtt/mac2mqtt/main.go:290 +0x50
main.main.func1()
/home/runner/work/mac2mqtt/mac2mqtt/main.go:318 +0x8c
created by main.main in goroutine 1
/home/runner/work/mac2mqtt/mac2mqtt/main.go:310 +0x198
The text was updated successfully, but these errors were encountered:
i have macos sequoia 15.1 and mac2mqtt run 3 minutes:
drapple@Mac-mini mac2mqtt % ./mac2mqtt
2024/11/09 14:02:56 Started
2024/11/09 14:02:58 Connected to MQTT
2024/11/09 14:02:58 Sending 'true' to topic: mac2mqtt/Mac-mini/status/alive
panic: runtime error: index out of range [1] with length 0
goroutine 34 [running]:
main.getBatteryChargePercent()
/home/runner/work/mac2mqtt/mac2mqtt/main.go:284 +0xac
main.updateBattery({0x1048cd1f0, 0x140000c8788})
/home/runner/work/mac2mqtt/mac2mqtt/main.go:290 +0x50
main.main.func1()
/home/runner/work/mac2mqtt/mac2mqtt/main.go:318 +0x8c
created by main.main in goroutine 1
/home/runner/work/mac2mqtt/mac2mqtt/main.go:310 +0x198
The text was updated successfully, but these errors were encountered: