Fix graph scale with no data
This commit is contained in:
parent
94d96cbc80
commit
86b494229e
|
@ -78,6 +78,8 @@ public class GraphData {
|
||||||
if (bgReadingsArray == null || bgReadingsArray.size() == 0) {
|
if (bgReadingsArray == null || bgReadingsArray.size() == 0) {
|
||||||
if (L.isEnabled(L.OVERVIEW))
|
if (L.isEnabled(L.OVERVIEW))
|
||||||
log.debug("No BG data.");
|
log.debug("No BG data.");
|
||||||
|
maxY = 10;
|
||||||
|
minY = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue