From fb58e2c156448a95ce49b230b962677333c17364 Mon Sep 17 00:00:00 2001 From: Brandon Schneider Date: Thu, 28 May 2026 17:35:55 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20reed=5Fsolomon=5Fvcn=20decode=5Frs=20ret?= =?UTF-8?q?urn=20type=20(tuple=20=E2=86=92=20bytes=20extraction)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 5-Applications/scripts/reed_solomon_vcn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/5-Applications/scripts/reed_solomon_vcn.py b/5-Applications/scripts/reed_solomon_vcn.py index 589a43f5..ba536f3b 100644 --- a/5-Applications/scripts/reed_solomon_vcn.py +++ b/5-Applications/scripts/reed_solomon_vcn.py @@ -115,7 +115,8 @@ def decode_rs(encoded_data: bytes, nsym: int = 32) -> Tuple[bytes, int]: """ codec = reedsolo.RSCodec(nsym) decoded, _, errata_pos = codec.decode(encoded_data) - return bytes(decoded), len(errata_pos) if errata_pos else 0 + corrections = len(errata_pos) if errata_pos else 0 + return bytes(decoded), corrections def protect_frame(frame_bytes: bytes, redundancy_factor: int = 2) -> bytes: