Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos sequoia break #21

Open
dr-apple opened this issue Nov 9, 2024 · 0 comments
Open

macos sequoia break #21

dr-apple opened this issue Nov 9, 2024 · 0 comments

Comments

@dr-apple
Copy link

dr-apple commented Nov 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant