raspberrypi / scratch

Scratch releases
79 stars 21 forks source link

gpioserver spi bus shutdown fails #220

Closed timrowledge closed 8 years ago

timrowledge commented 8 years ago

See - https://www.raspberrypi.org/forums/viewtopic.php?f=77&t=159564

The spi bus #shutDown method is using the wrong key in the allocated bus' dictionary.

timrowledge commented 8 years ago

The problem was that the SPIBus version of #release - used when closing down the use of spi - was sending super release, which was erroneously implemented as AllocatedSPIBuses removeKey: self.

By removing the super send and indeed replacing the superclass version with a subclassResponsibility send we avoid the entire problem.

timrowledge commented 8 years ago

Fixed in HardwarePeripheral-Core-tpr.34