comboctl-main: Finish reading profile by pressing BACK to avoid vibration

When exiting the basal profile screens by pressing CHECK twice, a
vibration happens. This can be avoided by instead pressing BACK until
the main screen is reached.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
This commit is contained in:
Carlos Rafael Giani 2022-12-08 19:19:35 +01:00
parent 3a29e8d4f2
commit 6ecc1073df

View file

@ -2826,14 +2826,12 @@ class Pump(
} }
} }
// All factors retrieved. Press CHECK once to get back to the total // All factors retrieved. Press BACK repeatedly until we are back at the main menu.
// basal rate screen, and then CHECK again to return to the main menu. cycleToRTScreen(
rtNavigationContext,
rtNavigationContext.shortPressButton(RTNavigationButton.CHECK) RTNavigationButton.BACK,
waitUntilScreenAppears(rtNavigationContext, ParsedScreen.BasalRateTotalScreen::class) ParsedScreen.MainScreen::class
)
rtNavigationContext.shortPressButton(RTNavigationButton.CHECK)
waitUntilScreenAppears(rtNavigationContext, ParsedScreen.MainScreen::class)
getBasalProfileReporter.setCurrentProgressStage(BasicProgressStage.Finished) getBasalProfileReporter.setCurrentProgressStage(BasicProgressStage.Finished)