Skip to content

CSAFE_PM_GET_STROKESTATS is missing #4

Description

@undertaker1753

Hi

I'm looking for the strokestats, but they are missing in the file pyrow/csafe/csafe_dic.py
Add it there with 0x6E ends in a bug:

Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/home/pi/src/pyrow/pyrow/ergmanager.py", line 147, in erg_monitor
monitor = self._pyerg.get_monitor(pretty=True, forceplot=True)
File "/home/pi/src/pyrow/pyrow/pyrow.py", line 223, in get_monitor
results2 = self.send(command)
File "/home/pi/src/pyrow/pyrow/pyrow.py", line 441, in send
csafe = csafe_cmd.write(message)
File "/home/pi/src/pyrow/pyrow/csafe/csafe_cmd.py", line 60, in write
value = __int2bytes(varbytes, intvalue)
File "/home/pi/src/pyrow/pyrow/csafe/csafe_cmd.py", line 12, in __int2bytes
if not 0 <= integer <= 2 ** (8 * numbytes):
TypeError: '<=' not supported between instances of 'int' and 'str'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions