add detection

This commit is contained in:
Peter D. Gray 2023-12-04 13:50:51 -05:00 committed by scgbckbone
parent 8541dbd8c6
commit 67d61ac11e

View File

@ -25,6 +25,10 @@ class PSRAMWrapper:
return memoryview(self._wr)[offset:offset+ln]
def is_at(self, ptr, offset):
# is bytes() object really one we created at read_at
return uctypes.addressof(ptr) == self.base+offset
# Be compatible with SPIFlash class...
def read(self, address, buf, cmd=None):