This commit is contained in:
Milos Kozak 2021-11-02 13:38:03 +01:00
parent 2582240556
commit 87679b42e7

View file

@ -77,7 +77,7 @@ abstract class DanaRSPacketHistory(
dataIndex += dataSize dataIndex += dataSize
dataSize = 2 dataSize = 2
totalCount = byteArrayToInt(getBytes(data, dataIndex, dataSize)) totalCount = byteArrayToInt(getBytes(data, dataIndex, dataSize))
aapsLogger.debug(LTag.PUMPCOMM, "History end. Code: " + error + " Success: " + (error == 0x00) + " Toatal count: " + totalCount) aapsLogger.debug(LTag.PUMPCOMM, "History end. Code: " + error + " Success: " + (error == 0x00) + " Total count: " + totalCount)
} else { } else {
val recordCode = byteArrayToInt(getBytes(data, DATA_START, 1)) val recordCode = byteArrayToInt(getBytes(data, DATA_START, 1))
val historyYear = byteArrayToInt(getBytes(data, DATA_START + 1, 1)) val historyYear = byteArrayToInt(getBytes(data, DATA_START + 1, 1))