mirror of
https://github.com/henrygd/beszel.git
synced 2026-04-10 06:51:49 +02:00
agent: refactor new battery package (#1872)
This commit is contained in:
13
agent/battery/battery_stub.go
Normal file
13
agent/battery/battery_stub.go
Normal file
@@ -0,0 +1,13 @@
|
||||
//go:build !darwin && !linux && !windows
|
||||
|
||||
package battery
|
||||
|
||||
import "errors"
|
||||
|
||||
func HasReadableBattery() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func GetBatteryStats() (uint8, uint8, error) {
|
||||
return 0, 0, errors.ErrUnsupported
|
||||
}
|
||||
Reference in New Issue
Block a user