Compare commits

...

1 Commits

Author SHA1 Message Date
a34ee6a5be Add connection on measurement start to PKT8 2024-09-18 10:07:15 +03:00
2 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@ plugins {
javafx { javafx {
modules = ["javafx.controls", "javafx.web"] modules = ["javafx.controls", "javafx.web"]
version = "11" version = "16"
} }

View File

@ -251,6 +251,10 @@ class PKT8Device(context: Context, meta: Meta) : PortSensor(context, meta) {
// logger.warn("Trying to start measurement which is already started") // logger.warn("Trying to start measurement which is already started")
// } // }
if(!connected.booleanValue){
logger.info("Not connected, connecting...")
connected.setAndWait(true)
}
logger.info("Starting measurement") logger.info("Starting measurement")