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();
|
||||
|
||||
long clock = 0L;
|
||||
if (suggested.has("deliverAt"))
|
||||
clock = DateUtil.fromISODateString(suggested.getString("deliverAt")).getTime();
|
||||
if (suggested.has("timestamp"))
|
||||
clock = DateUtil.fromISODateString(suggested.getString("timestamp")).getTime();
|
||||
// check if this is new data
|
||||
if (clock != 0 && clock > deviceStatusOpenAPSData.clockSuggested) {
|
||||
deviceStatusOpenAPSData.suggested = suggested;
|
||||
|
|
Loading…
Reference in a new issue