badgerloop-software / sc1-driver-io

Solar Car 1 Driver IO Program - Firmware, Networking, and Dashboard
5 stars 1 forks source link

Fix datafetcher none timeout #44

Closed MCLiii closed 9 months ago

MCLiii commented 9 months ago

See issue #42

TheLawrus commented 9 months ago

if we remove the if (stop) return; line then we can also remove the stop=true line 11, and the entire method actually since stop has no other purpose

MCLiii commented 9 months ago

Few more changes, using buffer.clear() in every loop causes partial data for next packet to be wasted and cause program to think it's corrupted, the new commits addresses that and remove the usleep that's slowing down the backendprocesses.