Closed ysshah closed 2 years ago
https://github.com/redragonx/can2RNET/blob/master/JoyLocal.py#L233
I'm assuming that's the function you're talking about?
I'm talking about https://github.com/redragonx/can2RNET/blob/master/JoyLocal.py#L253, where you commented "#this is a blocking read.... so if there is no canbus traffic it will sit forever (to fix!)"
Ah yes, this will be fixed, I will try select. I also had issues with select once at some point in the dev stage. :+1:
To fix the
wait_rnet_joystick_frame
function in JoyLocal.py, we can use Python'sselect
module as described here to set a timeout on therecvfrom
method.