1
0
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:
cn
2018-12-14 13:34:16 +01:00
parent e75c04785a
commit c96878c22c
7 changed files with 75 additions and 3 deletions

View File

@ -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:]),
}
}