Revert unnecessary change.
This commit is contained in:
parent
9dca53f968
commit
eea5082278
|
@ -264,8 +264,8 @@ public class NSDeviceStatus {
|
||||||
JSONObject enacted = openaps.has("enacted") ? openaps.getJSONObject("enacted") : new JSONObject();
|
JSONObject enacted = openaps.has("enacted") ? openaps.getJSONObject("enacted") : new JSONObject();
|
||||||
|
|
||||||
long clock = 0L;
|
long clock = 0L;
|
||||||
if (suggested.has("deliverAt"))
|
if (suggested.has("timestamp"))
|
||||||
clock = DateUtil.fromISODateString(suggested.getString("deliverAt")).getTime();
|
clock = DateUtil.fromISODateString(suggested.getString("timestamp")).getTime();
|
||||||
// check if this is new data
|
// check if this is new data
|
||||||
if (clock != 0 && clock > deviceStatusOpenAPSData.clockSuggested) {
|
if (clock != 0 && clock > deviceStatusOpenAPSData.clockSuggested) {
|
||||||
deviceStatusOpenAPSData.suggested = suggested;
|
deviceStatusOpenAPSData.suggested = suggested;
|
||||||
|
|
Loading…
Reference in a new issue