From de3ce9ec1b759e662751a71c098458a230d66f53 Mon Sep 17 00:00:00 2001 From: Andrew Leech Date: Mon, 16 Dec 2019 13:25:36 +1100 Subject: [PATCH] decode: ensure full output is returned as a string. --- pylibdmtx/pylibdmtx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylibdmtx/pylibdmtx.py b/pylibdmtx/pylibdmtx.py index 638313d..cacb24a 100644 --- a/pylibdmtx/pylibdmtx.py +++ b/pylibdmtx/pylibdmtx.py @@ -170,7 +170,7 @@ def _decode_region(decoder, region, corrections, shrink): x1 = int((shrink * p11.X) + 0.5) y1 = int((shrink * p11.Y) + 0.5) return Decoded( - string_at(msg.contents.output), + string_at(msg.contents.output, msg.contents.outputIdx), Rect(x0, y0, x1 - x0, y1 - y0) ) else: