jphalip / ticlib

Python library to drive Pololu Tic stepper motor controllers
BSD 2-Clause "Simplified" License
19 stars 3 forks source link

Sometimes when I try tic.get_current_position() I get TypeError: object of type 'NoneType' has no len() #5

Open dragospascale opened 2 years ago

dragospascale commented 2 years ago

This happens in ticlib/ticlib.py", line 545, in _block_read because at line 543 result = self._read_response(length) does not return an object Maybe treat the error and retry to call again _block_read I'm using micropython on ESP32 Sending commands over UART is working but getting position or variables sometimes return values sometimes not