Undo over-eager optimization.

Makes setting actual 90/110% TBRs impossiblee and will result in
ComboPlugin starting TBRs with 100% (and failing because duration
is not readable or 0).

(cherry picked from commit 5a4e7d4)
This commit is contained in:
Johannes Mockenhaupt 2017-12-18 20:26:35 +01:00
parent 8e68a23225
commit 559dbdf0b1
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -124,9 +124,8 @@ public class SetTbrCommand extends BaseCommand {
scripter.waitForScreenUpdate(); scripter.waitForScreenUpdate();
state = scripter.readPumpStateInternal(); state = scripter.readPumpStateInternal();
} }
// if we waited above and a cancellation (fake or hard) was requested, // if we waited above and a cancellation was requested, we already completed the request
// we already completed the request if (!state.tbrActive && percentage == 100) {
if (!state.tbrActive && percentage >= 90 && percentage <= 110) {
result.success = true; result.success = true;
return true; return true;
} }