You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was not able to find a cleanup method in serialflash.py for the SpiController. If there is already one, it would help of you can point me to the code.
My program will run continuously and needs to close the ftdi interface after each operation. Right now I'm doing it in my code:
def close(device):
if device:
device._spi._controller.terminate()
It would be nice to have a clean way to do it instead of using "_members" directly.
If you want I can send a merge request with similar code as above in SerialFlashManager or preferably _SpiFlashDevice.
The text was updated successfully, but these errors were encountered:
First of all thank you for publishing pyspiflash. I'm using it for my project https://gitlab.com/expliot_framework/expliot
I was not able to find a cleanup method in serialflash.py for the SpiController. If there is already one, it would help of you can point me to the code.
My program will run continuously and needs to close the ftdi interface after each operation. Right now I'm doing it in my code:
def close(device):
if device:
device._spi._controller.terminate()
It would be nice to have a clean way to do it instead of using "_members" directly.
If you want I can send a merge request with similar code as above in SerialFlashManager or preferably _SpiFlashDevice.
The text was updated successfully, but these errors were encountered: