doceme / py-spidev

MIT License
461 stars 203 forks source link

Added several disabling of the GIL so that other threads can run when… #53

Closed billmccartney closed 7 years ago

billmccartney commented 7 years ago

… the spi is I/O bound. I only implemented this on xfer2.

ead0601 commented 7 years ago

Bill,

Thanks a million. This fixed my open issue: https://github.com/doceme/py-spidev/issues/55

I had added the following to my boot config to help with threading and clock throttling.

core_freq=250

Stopping the threading during the xfer2 solved all of my issues.

Thanks, Edward

doceme commented 7 years ago

@ead0601 Okay, I think I misunderstood your previous comments. Glad to hear this fixes your issue. Thanks @billmccartney for adding this.