Medtrum: Add log line
This commit is contained in:
parent
e026b59208
commit
68d45aae4f
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue