comboctl-main: Directly push MENU button to switch to TBR duration screen

There's no reason to use the full navigation function to switch from the
TBR percentage to the TBR duration screen, since these are next to each
other, and switching over is done by pressing MENU once.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
This commit is contained in:
Carlos Rafael Giani 2022-11-04 20:42:50 +01:00
parent 4201fe08a5
commit 9aff10537e

View file

@ -3064,7 +3064,9 @@ class Pump(
setTbrProgressReporter.setCurrentProgressStage(RTCommandProgressStage.SettingTBRDuration(0))
navigateToRTScreen(rtNavigationContext, ParsedScreen.TemporaryBasalRateDurationScreen::class, pumpSuspended)
// Now move to the duration screen by pressing MENU.
rtNavigationContext.shortPressButton(RTNavigationButton.MENU)
waitUntilScreenAppears(rtNavigationContext, ParsedScreen.TemporaryBasalRateDurationScreen::class)
adjustQuantityOnScreen(
rtNavigationContext,