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