fix bytearray.startswith not available in CircuitPython

This commit is contained in:
Christian Tu authored and Kyle Brown committed 2022-02-02 17:54:23 -08:00
1 parent b6201d43d4
commit f90de872d8
2 files changed
+3 -2

No files matched your search

+1 -2
View File
@@ -126,8 +126,7 @@ class AbstractHID:
pass
def send(self):
changed = not self._evt.startswith(self._prev_evt)
if changed:
if self._evt != self._prev_evt:
self._prev_evt[:] = self._evt
self.hid_send(self._evt)