You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2021. It is now read-only.
File "/usr/lib/python3.5/site-packages/canard/can.py", line 71, in data
data_len = min(self.dlc, len(self._data))
RecursionError: maximum recursion depth exceeded while calling a Python object
@propertydefdata(self):
# return bytes up to dlc length, pad with zerosdata_len=min(self.dlc, len(self._data))
result=self.data[:data_len]
result.extended([0] * (8-data_len))
returnresult
I tried changing the result to result = self._data[:data_len] which fixed the recursion, but then errored out on setting the extended property on the next line. After commenting out the extended property line, everything appears to work.
The text was updated successfully, but these errors were encountered:
My simple test script fails to transmit and infinitely recurses:
When run, this script returns:
The issue appears to be in can.py:
I tried changing the result to
result = self._data[:data_len]
which fixed the recursion, but then errored out on setting the extended property on the next line. After commenting out the extended property line, everything appears to work.The text was updated successfully, but these errors were encountered: