fix typo in poctech driver
This commit is contained in:
parent
98dedf117f
commit
bb30171777
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ public class DataService extends IntentService {
|
||||||
bgReading.direction = json.getString("direction");
|
bgReading.direction = json.getString("direction");
|
||||||
bgReading.date = json.getLong("date");
|
bgReading.date = json.getLong("date");
|
||||||
bgReading.raw = json.getDouble("raw");
|
bgReading.raw = json.getDouble("raw");
|
||||||
if (JsonHelper.safeGetString(json, "utils", Constants.MGDL).equals("mmol/L"))
|
if (JsonHelper.safeGetString(json, "units", Constants.MGDL).equals("mmol/L"))
|
||||||
bgReading.value = bgReading.value * Constants.MMOLL_TO_MGDL;
|
bgReading.value = bgReading.value * Constants.MMOLL_TO_MGDL;
|
||||||
boolean isNew = MainApp.getDbHelper().createIfNotExists(bgReading, "Poctech");
|
boolean isNew = MainApp.getDbHelper().createIfNotExists(bgReading, "Poctech");
|
||||||
if (isNew && SP.getBoolean(R.string.key_dexcomg5_nsupload, false)) {
|
if (isNew && SP.getBoolean(R.string.key_dexcomg5_nsupload, false)) {
|
||||||
|
|
Loading…
Reference in a new issue