Fix detecting BG source from NS entry.
This commit is contained in:
parent
b4db98fa1d
commit
c18effd893
|
@ -68,7 +68,7 @@ public class SourceNSClientPlugin extends PluginBase implements BgSourceInterfac
|
|||
BgReading bgReading = new BgReading(new NSSgv(sgvJson));
|
||||
String sourceDescription = JsonHelper.safeGetString(sgvJson, "device");
|
||||
bgReading.filtered = sourceDescription != null
|
||||
&& (sourceDescription.equals("G5 Native") || sourceDescription.equals("AndroidAPS-DexcomG5"));
|
||||
&& (sourceDescription.contains("G5 Native") || sourceDescription.contains("AndroidAPS-DexcomG5"));
|
||||
bgReading.sourcePlugin = getName();
|
||||
boolean isNew = MainApp.getDbHelper().createIfNotExists(bgReading, getName());
|
||||
if (isNew) {
|
||||
|
|
Loading…
Reference in a new issue