Add connection on measurement start to PKT8
This commit is contained in:
parent
8e45062957
commit
a34ee6a5be
@ -4,7 +4,7 @@ plugins {
|
||||
|
||||
javafx {
|
||||
modules = ["javafx.controls", "javafx.web"]
|
||||
version = "11"
|
||||
version = "16"
|
||||
}
|
||||
|
||||
|
||||
|
@ -251,6 +251,10 @@ class PKT8Device(context: Context, meta: Meta) : PortSensor(context, meta) {
|
||||
// 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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user