Fix ReadHistoryCommand not reading errors, TDDs.

This commit is contained in:
Johannes Mockenhaupt 2018-01-31 00:12:28 +01:00
parent e790c87940
commit 154902acdc
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -58,9 +58,9 @@ public class ReadHistoryCommand extends BaseCommand {
}
}
if (request.pumpErrorHistory == PumpHistoryRequest.SKIP
&& request.tddHistory == PumpHistoryRequest.SKIP
&& request.tbrHistory == PumpHistoryRequest.SKIP) {
if (request.pumpErrorHistory != PumpHistoryRequest.SKIP
|| request.tddHistory != PumpHistoryRequest.SKIP
|| request.tbrHistory != PumpHistoryRequest.SKIP) {
// error history
scripter.pressMenuKey();
scripter.verifyMenuIsDisplayed(MenuType.ERROR_DATA);