kopia lustrzana https://github.com/micropython/micropython
drivers/display/lcd160cr: Add check that JPEG size is less than 65536.
rodzic
f4a12dca58
commit
528aeb3bf3
|
@ -446,6 +446,8 @@ class LCD160CR:
|
||||||
self._send(s)
|
self._send(s)
|
||||||
|
|
||||||
def jpeg_start(self, l):
|
def jpeg_start(self, l):
|
||||||
|
if l > 0xffff:
|
||||||
|
raise ValueError('length must be 65535 or less')
|
||||||
self.oflush()
|
self.oflush()
|
||||||
self._fcmd2('<BBH', 0x6a, l)
|
self._fcmd2('<BBH', 0x6a, l)
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue