comboctl-main: Allow fetching TDDs while the pump is suspended

There is no good reason for disallowing TDD retrieval while the Combo
is suspended - the TDD history screens are accessible, and TDD retrieval
does not cause any insulin delivery to take place.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
This commit is contained in:
Carlos Rafael Giani 2023-03-20 19:33:31 +01:00
parent 6435b36f7e
commit d280a2bec5

View file

@ -1877,6 +1877,7 @@ class Pump(
suspend fun fetchTDDHistory() = executeCommand<List<TDDHistoryEntry>>( suspend fun fetchTDDHistory() = executeCommand<List<TDDHistoryEntry>>(
pumpMode = PumpIO.Mode.REMOTE_TERMINAL, pumpMode = PumpIO.Mode.REMOTE_TERMINAL,
isIdempotent = true, isIdempotent = true,
allowExecutionWhileSuspended = true,
description = FetchingTDDHistoryCommandDesc() description = FetchingTDDHistoryCommandDesc()
) { ) {
tddHistoryProgressReporter.reset(Unit) tddHistoryProgressReporter.reset(Unit)