Fix ReadHistoryCommand to not ignore TDD requests.

This commit is contained in:
Johannes Mockenhaupt 2017-12-08 23:17:30 +01:00
parent 8699d9a384
commit b8ad44ba43
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -36,7 +36,8 @@ public class ReadHistoryCommand extends BaseCommand {
public void execute() {
if (request.bolusHistory != PumpHistoryRequest.SKIP
|| request.tbrHistory != PumpHistoryRequest.SKIP
|| request.pumpErrorHistory != PumpHistoryRequest.SKIP) {
|| request.pumpErrorHistory != PumpHistoryRequest.SKIP
|| request.tddHistory != PumpHistoryRequest.SKIP) {
scripter.verifyMenuIsDisplayed(MenuType.MAIN_MENU);
scripter.navigateToMenu(MenuType.MY_DATA_MENU);
scripter.verifyMenuIsDisplayed(MenuType.MY_DATA_MENU);