Ive created a driver class for an spi device
I need to initiate the class then dispose of it and re-initialise… over and over.
I set the current instance class to null and it still complains.
On re-entry at the class creation
this.spi = new SPI(config);
I cant seem to set the instance of spi to null
and there is no dispose option.
Does my class need a destructor?