Skip to content

Commit

Permalink
fixed fullturn config path
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Briegel committed Mar 11, 2024
1 parent e179fe2 commit b72b2d0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions python/lvmtan/BasdaCluPythonServiceWorker.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def init(self):
self.service = Basda.Basdard.interface(self.cfgNode.node("SERVICE").String)
dev_name = self.service.config().node("DEVICE").String

self.device = Basda.Basdard.device(dev_name)
self.device = Basda.Basdard.device(dev_name)q

self.simulate = self.device.config().node("LOAD").MapStringString["LIB"] == "BasdaMoccaNDeviceDummy"
I_LOG(f"simulate: {self.simulate}")
Expand All @@ -150,16 +150,17 @@ def init(self):
):
self.unit = self.cfgNode.node("UNIT").String


if (
self.cfgNode.exist("FULLTURN")
and self.cfgNode.node("FULLTURN").hasLeaf()
self.device.config().exist("CFG.FULLTURN")
and self.device.config().node("CFG.FULLTURN").hasLeaf()
):
self.fullturn = self.cfgNode.node("FULLTURN").Int
self.fullturn = self.device.config().node("CFG.FULLTURN").Int
Nice.U9_LOG(f"Fullturn: { self.fullturn}")
else:
self.fullturn = 0



def abort(self):
self.terminated = True
Nice.U8_LOG("abort")
Expand Down

0 comments on commit b72b2d0

Please sign in to comment.