From 8ff3ee048da75817f201be70834b263f333f0df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloan=20ANDR=C3=89?= Date: Wed, 22 Mar 2023 16:22:56 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'src/decoderPropre.?= =?UTF-8?q?py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/decoderPropre.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/decoderPropre.py b/src/decoderPropre.py index 17aaf0b..67b8f81 100644 --- a/src/decoderPropre.py +++ b/src/decoderPropre.py @@ -61,10 +61,8 @@ def decode(pkt): status = [] if "C" in typeCall: for j in range(len(outputValue)): - bi=str(bin(outputValue[j])) - bi = bi[2:] - bi = bi.rjust(8,'0')[::-1] - status.extend(k for k in [*bi]) + val=str(bin(outputValue[j]))[2:].rjust(8,'0')[::-1] + status.extend(k for k in [*val]) for j in range(len(status)): #bigL.append([miniL[0],status[j],addr+j]) # changer 5 pour mettre l'adresse