Fix graph scale with no data

This commit is contained in:
Milos Kozak 2019-02-25 20:11:21 +01:00
parent 94d96cbc80
commit 86b494229e

View file

@ -78,6 +78,8 @@ public class GraphData {
if (bgReadingsArray == null || bgReadingsArray.size() == 0) {
if (L.isEnabled(L.OVERVIEW))
log.debug("No BG data.");
maxY = 10;
minY = 0;
return;
}