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:
parent
3a29e8d4f2
commit
6ecc1073df
|
@ -2826,14 +2826,12 @@ class Pump(
|
|||
}
|
||||
}
|
||||
|
||||
// All factors retrieved. Press CHECK once to get back to the total
|
||||
// basal rate screen, and then CHECK again to return to the main menu.
|
||||
|
||||
rtNavigationContext.shortPressButton(RTNavigationButton.CHECK)
|
||||
waitUntilScreenAppears(rtNavigationContext, ParsedScreen.BasalRateTotalScreen::class)
|
||||
|
||||
rtNavigationContext.shortPressButton(RTNavigationButton.CHECK)
|
||||
waitUntilScreenAppears(rtNavigationContext, ParsedScreen.MainScreen::class)
|
||||
// All factors retrieved. Press BACK repeatedly until we are back at the main menu.
|
||||
cycleToRTScreen(
|
||||
rtNavigationContext,
|
||||
RTNavigationButton.BACK,
|
||||
ParsedScreen.MainScreen::class
|
||||
)
|
||||
|
||||
getBasalProfileReporter.setCurrentProgressStage(BasicProgressStage.Finished)
|
||||
|
||||
|
|
Loading…
Reference in a new issue