Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 07b3eac04bafde74f1066c44574f7c9341b70ee8 Mon Sep 17 00:00:00 2001
- From: Enio <enioarda@gmail.com>
- Date: Sat, 6 Dec 2014 13:48:07 +0100
- Subject: [PATCH] Fix for lf t55xx readblockPWD untested.
- ---
- armsrc/lfops.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
- diff --git a/armsrc/lfops.c b/armsrc/lfops.c
- index 7d497e3..4b6fb40 100644
- --- a/armsrc/lfops.c
- +++ b/armsrc/lfops.c
- @@ -950,7 +950,7 @@ void T55xxWriteBit(int bit)
- // Write one card block in page 0, no lock
- void T55xxWriteBlock(uint32_t Data, uint32_t Block, uint32_t Pwd, uint8_t PwdMode)
- {
- - unsigned int i;
- + uint32_t i;
- FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
- FpgaSendCommand(FPGA_CMD_SET_DIVISOR, 95); //125Khz
- @@ -995,7 +995,7 @@ void T55xxWriteBlock(uint32_t Data, uint32_t Block, uint32_t Pwd, uint8_t PwdMod
- void T55xxReadBlock(uint32_t Block, uint32_t Pwd, uint8_t PwdMode)
- {
- uint8_t *dest = (uint8_t *)BigBuf;
- - int m=0, i=0;
- + uint32_t m=0, i=0;
- FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
- m = sizeof(BigBuf);
- --
- 2.1.3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement