report failed TBR properly

This commit is contained in:
Milos Kozak 2020-11-22 14:13:29 +01:00
parent c2237b4b11
commit 6f7cfdd06d
2 changed files with 6 additions and 1 deletions

View file

@ -551,6 +551,9 @@ public class LoopPlugin extends PluginBase implements LoopInterface {
rxBus.send(new EventLoopUpdateGui()); rxBus.send(new EventLoopUpdateGui());
} }
}); });
} else {
lastRun.setTbrSetByPump(result);
lastRun.setLastTBRRequest(lastRun.getLastAPSRun());
} }
rxBus.send(new EventLoopUpdateGui()); rxBus.send(new EventLoopUpdateGui());
} }

View file

@ -170,6 +170,8 @@ public class PumpEnactResult {
ret += "<br><b>" + resourceHelper.gs(R.string.absolute) + "</b>: " + DecimalFormatter.to2Decimal(absolute) + " U/h"; ret += "<br><b>" + resourceHelper.gs(R.string.absolute) + "</b>: " + DecimalFormatter.to2Decimal(absolute) + " U/h";
} }
} else { } else {
ret += "<br><b>" + resourceHelper.gs(R.string.success) + "</b>: " + success;
if (!comment.isEmpty())
ret += "<br><b>" + resourceHelper.gs(R.string.comment) + "</b>: " + comment; ret += "<br><b>" + resourceHelper.gs(R.string.comment) + "</b>: " + comment;
} }
return ret; return ret;