Added staleData
This commit is contained in:
parent
450634418e
commit
232590e707
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue