Added staleData

This commit is contained in:
RoumenGeorgiev 2017-08-03 18:48:45 +03:00 committed by GitHub
parent 450634418e
commit 232590e707

View file

@ -188,6 +188,11 @@ public class NSSettingsStatus {
return result; return result;
} }
} }
if (settingsO.has("alarmTimeagoWarnMins") && what == "alarmTimeagoWarnMins"){
JSONObject tObject = settingsO.getJSONObject("alarmTimeagoWarnMins");
Double result = tObject.getDouble(what);
return result;
}
} }
} catch (JSONException e) { } catch (JSONException e) {
e.printStackTrace(); e.printStackTrace();
@ -271,7 +276,6 @@ public class NSSettingsStatus {
, warnBattP: sbx.extendedSettings.warnBattP || 30 , warnBattP: sbx.extendedSettings.warnBattP || 30
, urgentBattP: sbx.extendedSettings.urgentBattP || 20 , urgentBattP: sbx.extendedSettings.urgentBattP || 20
, enableAlerts: sbx.extendedSettings.enableAlerts || false , enableAlerts: sbx.extendedSettings.enableAlerts || false
*/ */
public double extendedPumpSettings(String setting) { public double extendedPumpSettings(String setting) {