module: add tests for common package

This commit is contained in:
cn committed 2018-12-22 13:56:49 +01:00
1 parent e75c04785a
commit c96878c22c
7 files changed
+75 -3

No files matched your search

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