Medtrum: Add log line

This commit is contained in:
jbr7rr 2023-10-29 06:57:43 +01:00
parent e026b59208
commit 68d45aae4f

View file

@ -566,7 +566,8 @@ class MedtrumService : DaggerService(), BLECommCallback {
result = sendPacketAndGetResponse(packet, COMMAND_SYNC_TIMEOUT_SEC) result = sendPacketAndGetResponse(packet, COMMAND_SYNC_TIMEOUT_SEC)
if (!result && packet.failed) { if (!result && packet.failed) {
// Record may be broken for unkown reasons, try the next packet if that fails abort // Record may be broken for unkown reasons, try the next packet if that fails abort
failureCount++ failureCount++
aapsLogger.error(LTag.PUMPCOMM, "Failed to sync record $sequence, failureCount: $failureCount")
if (failureCount == 1) { if (failureCount == 1) {
// Show notification to alert user of failure // Show notification to alert user of failure
uiInteraction.addNotificationWithSound( uiInteraction.addNotificationWithSound(