From eeb687399e005f80974b1ee687688610c890ff08 Mon Sep 17 00:00:00 2001 From: Samuele Guerrini Date: Wed, 2 Jan 2019 21:11:40 +0100 Subject: [PATCH] Fixed bruteforce password array --- armsrc/pcf7931.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/armsrc/pcf7931.c b/armsrc/pcf7931.c index bfc22bf8..b4521060 100644 --- a/armsrc/pcf7931.c +++ b/armsrc/pcf7931.c @@ -402,8 +402,8 @@ void BruteForcePCF7931(uint64_t password, uint8_t tries, uint16_t init_delay, in pass_array[2] = (password >> 16) & 0xFF; pass_array[3] = (password >> 24) & 0xFF; pass_array[4] = (password >> 32) & 0xFF; - pass_array[5] = (password >> 48) & 0xFF; - pass_array[6] = (password >> 56) & 0xFF; + pass_array[5] = (password >> 40) & 0xFF; + pass_array[6] = (password >> 48) & 0xFF; Dbprintf("Trying: %02x %02x %02x %02x %02x %02x %02x ...", pass_array[0],