assert nscliet is running in RunningConfiguration
This commit is contained in:
parent
50861f237d
commit
00fb5bd6ce
|
@ -61,6 +61,8 @@ class RunningConfiguration @Inject constructor(
|
|||
|
||||
// called in NSClient mode only
|
||||
fun apply(configuration: JSONObject) {
|
||||
assert(config.NSCLIENT)
|
||||
|
||||
if (configuration.has("version")) {
|
||||
rxBus.send(EventNSClientNewLog("VERSION", "Received AndroidAPS version ${configuration.getString("version")}"))
|
||||
if (config.VERSION_NAME.startsWith(configuration.getString("version")).not()) {
|
||||
|
|
Loading…
Reference in a new issue