Commit 528aeb3b authored by Damien George's avatar Damien George
Browse files

drivers/display/lcd160cr: Add check that JPEG size is less than 65536.

parent f4a12dca
......@@ -446,6 +446,8 @@ class LCD160CR:
def jpeg_start(self, l):
if l > 0xffff:
raise ValueError('length must be 65535 or less')
self._fcmd2('<BBH', 0x6a, l)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment