Closed Edward-CNRG-NTU closed 3 years ago
Kind of an old issue, but the v1.3.5 release in July allowed for multiple instances of SPI via SPIDEV, so that should be working now. Still unsure what to make of the virtual ~SPI() thing...
Please reopen if still ongoing issues.
https://github.com/nRF24/RF24/blob/a3ab7ddb075360deac54fe2c8e2fab286793d21c/utility/SPIDEV/spi.h#L79
as title, the SPIDEV driver was installed without error message, but failed to import pyRF24.
after some tinkering, I found that tweaking this line to
virtual ~SPI();
fixes it. I have no idea how that did the trick, any explanation?BTW, I'm actually investigating in initializing two RF24 objects in my python application to control two NRF24 module at the same time physically.
virtual ~SPI();
thing. But after that, I'm still unable to instantiating two RF24 objects in my python application. I only got segmentation fault.thanks