freebsd: fix battery-related bug (#1081)

This commit is contained in:
henrygd
2025-08-26 18:39:42 -04:00
parent e2a57dc43b
commit b13915b76f
5 changed files with 69 additions and 34 deletions

View File

@@ -0,0 +1,13 @@
//go:build freebsd
package battery
import "errors"
func HasReadableBattery() bool {
return false
}
func GetBatteryStats() (uint8, uint8, error) {
return 0, 0, errors.ErrUnsupported
}