Add connection on measurement start to PKT8

This commit is contained in:
Alexander Nozik 2024-09-18 10:07:15 +03:00
parent 8e45062957
commit a34ee6a5be
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")