joystick_ros2 icon indicating copy to clipboard operation
joystick_ros2 copied to clipboard

Auto-repeat functionality not working

Open nrsarf5 opened this issue 1 year ago • 0 comments

In my testing, the auto-repeat functionality was not working. It turned out that the I/O read was in blocking mode, so the event loop would be blocked unless new data was received (i.e. the data would never be stale).

This can be resolved by adding os.set_blocking(self._character_file.fileno(), False) after the character file is initialized.

nrsarf5 avatar Aug 29 '23 14:08 nrsarf5