mirror of
https://github.com/cmur2/miflorad.git
synced 2026-10-17 16:39:36 +02:00
module: add tests for common package
This commit is contained in:
1 parent
e75c04785a
commit
c96878c22c
7 files changed
+75
-3
No files matched your search
+2
-2
@@ -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