You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Doesn't crash...
This commit is contained in:
@@ -15,6 +15,9 @@ try:
|
||||
raise ValueError("File size does not match expected 240x240 grayscale image")
|
||||
# Decode QR code using qrdecode module
|
||||
print("decoding...")
|
||||
print(f"buffer length: {len(buffer)}")
|
||||
for i in range(15):
|
||||
print(buffer[i])
|
||||
result = qrdecode.qrdecode(buffer, width, height)
|
||||
print(f"result: {result}")
|
||||
# Remove BOM (\ufeff) from the start of the decoded string, if present
|
||||
|
||||
Reference in New Issue
Block a user