mirror of
https://github.com/cmur2/miflorad.git
synced 2025-06-26 22:30:24 +02:00
module: add tests for common package
This commit is contained in:
@ -17,8 +17,8 @@ func MifloraGetModeChangeData() []byte {
|
||||
|
||||
func ParseVersionBattery(bytes []byte) VersionBatteryResponse {
|
||||
return VersionBatteryResponse{
|
||||
string(bytes[2:]),
|
||||
uint8(bytes[0]),
|
||||
BatteryLevel: uint8(bytes[0]),
|
||||
FirmwareVersion: string(bytes[2:]),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user