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:
parent
8e68a23225
commit
559dbdf0b1
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue