From 8318afdb60dc6cf02cb095f44139ad189ebce37a Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Wed, 2 Feb 2022 23:15:53 +0200 Subject: [PATCH] small fix --- client/src/cipurse/cipursecore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cipurse/cipursecore.c b/client/src/cipurse/cipursecore.c index a359666bb..838f5b139 100644 --- a/client/src/cipurse/cipursecore.c +++ b/client/src/cipurse/cipursecore.c @@ -388,8 +388,8 @@ void CIPURSEPrintART(uint8_t *artrec, size_t artlen) { else PrintAndLogEx(INFO, "key %d : " NOLF, i); - for (int n = 0; n < 8; n++) - if ((artrec[i] >> n) && 0x01) + for (int n = 7; n >= 0; n--) + if ((artrec[i] >> n) & 0x01) PrintAndLogEx(NORMAL, "%d " NOLF, n + 1); else PrintAndLogEx(NORMAL, " " NOLF);