fix reading glimp bg data

This commit is contained in:
Milos Kozak 2017-03-18 23:35:43 +01:00
parent 7f4db28c41
commit f528f1cd83

View file

@ -47,7 +47,7 @@ public class BgReading implements DataPointInterface {
public BgReading(NSSgv sgv) {
timeIndex = sgv.getMills();
value = sgv.getMgdl();
raw = sgv.getFiltered();
raw = sgv.getFiltered() != null ? sgv.getFiltered() : value;
direction = sgv.getDirection();
}