Skip to content

Commit

Permalink
there was a fall through in the else
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqbus committed Feb 19, 2024
1 parent 36f94cd commit fa3ac6e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ internal class AlarmPingSender(val service: MqttService) : MqttPingSender {
// the device to run this task whilst dosing.
Timber.d("Alarm schedule using setExactAndAllowWhileIdle, next: $delayInMilliseconds")
alarmManager.setExactAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, nextAlarmInMilliseconds, it)
} else
} else {
Timber.d("Alarm schedule using setExact, delay: $delayInMilliseconds")
alarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, nextAlarmInMilliseconds, it)
alarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, nextAlarmInMilliseconds, it)
}
}
}

Expand Down

0 comments on commit fa3ac6e

Please sign in to comment.