lints
This commit is contained in:
parent
7442774ab7
commit
fa23f30ab1
1 changed files with 1 additions and 2 deletions
|
@ -18,7 +18,6 @@ import info.nightscout.androidaps.utils.sharedPreferences.SP
|
||||||
import org.json.JSONArray
|
import org.json.JSONArray
|
||||||
import org.json.JSONException
|
import org.json.JSONException
|
||||||
import org.json.JSONObject
|
import org.json.JSONObject
|
||||||
import java.util.*
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
import javax.inject.Singleton
|
import javax.inject.Singleton
|
||||||
|
|
||||||
|
@ -195,7 +194,7 @@ class NSDeviceStatus @Inject constructor(
|
||||||
if (clock == 0L || deviceStatusData.pumpData != null && clock < deviceStatusData.pumpData!!.clock) return
|
if (clock == 0L || deviceStatusData.pumpData != null && clock < deviceStatusData.pumpData!!.clock) return
|
||||||
|
|
||||||
// create new status and process data
|
// create new status and process data
|
||||||
var deviceStatusPumpData = DeviceStatusData.PumpData()
|
val deviceStatusPumpData = DeviceStatusData.PumpData()
|
||||||
deviceStatusPumpData.clock = clock
|
deviceStatusPumpData.clock = clock
|
||||||
if (pump.has("status") && pump.getJSONObject("status").has("status")) deviceStatusPumpData.status = pump.getJSONObject("status").getString("status")
|
if (pump.has("status") && pump.getJSONObject("status").has("status")) deviceStatusPumpData.status = pump.getJSONObject("status").getString("status")
|
||||||
if (pump.has("reservoir")) deviceStatusPumpData.reservoir = pump.getDouble("reservoir")
|
if (pump.has("reservoir")) deviceStatusPumpData.reservoir = pump.getDouble("reservoir")
|
||||||
|
|
Loading…
Reference in a new issue