Removed redundant weakref references

Also tweaked a couple of minor bits (SPI bus init mask) and unused
_get_address override
This commit is contained in:
Dave Jones
2016-10-21 10:43:58 +01:00
parent ce6217c14f
commit 4d79dc74db
6 changed files with 7 additions and 9 deletions

View File

@@ -179,9 +179,6 @@ class PiGPIOPin(PiPin):
self.function = 'input'
self.pull = 'up' if self.factory.pi_info.pulled_up('GPIO%d' % self.number) else 'floating'
def _get_address(self):
return self.factory.address + ('GPIO%d' % self.number,)
def _get_function(self):
return self.GPIO_FUNCTION_NAMES[self.factory.connection.get_mode(self.number)]