mirror of
https://github.com/naruxde/revpipyload.git
synced 2025-11-08 15:13:52 +01:00
Byteorder und Vorzeichen an PyControl übergeben und verarbeiten
This commit is contained in:
@@ -89,6 +89,8 @@ class ProcimgServer():
|
|||||||
io._slc_address.start + dev.offset,
|
io._slc_address.start + dev.offset,
|
||||||
io.bmk,
|
io.bmk,
|
||||||
io._bitaddress,
|
io._bitaddress,
|
||||||
|
io._byteorder,
|
||||||
|
io._signed,
|
||||||
])
|
])
|
||||||
return Binary(pickle.dumps(dict_ios))
|
return Binary(pickle.dumps(dict_ios))
|
||||||
|
|
||||||
@@ -152,7 +154,8 @@ class ProcimgServer():
|
|||||||
self.rpi.io[io].set_value(
|
self.rpi.io[io].set_value(
|
||||||
value.to_bytes(
|
value.to_bytes(
|
||||||
self.rpi.io[io].length,
|
self.rpi.io[io].length,
|
||||||
byteorder=self.rpi.io[io].byteorder
|
byteorder=self.rpi.io[io]._byteorder,
|
||||||
|
signed=self.rpi.io[io]._signed,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user