remove unused code

This commit is contained in:
Milos Kozak 2022-05-19 13:07:36 +02:00
parent 0835a487c0
commit a83d6391a3

View file

@ -298,11 +298,7 @@ class MedtronicCommunicationManager // This empty constructor must be kept, oth
if (frameData.isEmpty()) {
aapsLogger.error(LTag.PUMPCOMM, "null frame data, retrying")
} else if (currentResponse.frameNumber != expectedFrameNum) {
aapsLogger.warn(
LTag.PUMPCOMM, String.format(Locale.ENGLISH, "Expected frame number %d, received %d (retrying)", expectedFrameNum,
currentResponse.frameNumber))
} else if (frameData.isEmpty()) {
aapsLogger.warn(LTag.PUMPCOMM, "Frame has zero length, retrying")
aapsLogger.warn(LTag.PUMPCOMM, String.format(Locale.ENGLISH, "Expected frame number %d, received %d (retrying)", expectedFrameNum, currentResponse.frameNumber))
}
failures++
if (failures == 6) {