summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordjwlindenaar <32413299+djwlindenaar@users.noreply.github.com>2020-09-12 12:07:52 +0200
committerGitHub <noreply@github.com>2020-09-12 12:07:52 +0200
commit1cacf52827f6bfcf991f08b8c4efef8044a81107 (patch)
treef0cdc4a3bc1998388ee8f9de8a1e8efdd8524e42
parentac8f9cb58ae0176ec4740c28b0d9eecf2c1f806b (diff)
downloadpycomlynx-1cacf52827f6bfcf991f08b8c4efef8044a81107.tar.gz
pycomlynx-1cacf52827f6bfcf991f08b8c4efef8044a81107.zip
Fix mistaken request bit in byte 5 of the CAN message
The request bit was not set in the CAN message, therefore many parameters did not return on my ULX3600o/HV. With this bit set all return
-rw-r--r--comlynx.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/comlynx.py b/comlynx.py
index d708ed3..658959f 100644
--- a/comlynx.py
+++ b/comlynx.py
@@ -391,7 +391,7 @@ class CanRequest(Message):
self._data[2] = 0xd0 #
self._data[3] = parameter_index # Parameter index
self._data[4] = parameter_sub_index # parameter sub-index
- self._data[5] = 0x00
+ self._data[5] = 0x80
self._data[6] = 0x00
self._data[7] = 0x00
self._data[8] = 0x00