- def find_falling_dav_edge(self, dav, datapins):
- # Ignore sample if the DAV pin hasn't changed.
- if dav == self.olddav:
- return
- self.olddav = dav
- # Sample on falling DAV edge.
- if dav == 1:
- return
-
- # Found the correct DAV edge, now get the bits.
- self.handle_bits(datapins)