Advertisement
Guest User

Untitled

a guest
Dec 6th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. From 07b3eac04bafde74f1066c44574f7c9341b70ee8 Mon Sep 17 00:00:00 2001
  2. From: Enio <enioarda@gmail.com>
  3. Date: Sat, 6 Dec 2014 13:48:07 +0100
  4. Subject: [PATCH] Fix for lf t55xx readblockPWD untested.
  5.  
  6. ---
  7. armsrc/lfops.c | 4 ++--
  8. 1 file changed, 2 insertions(+), 2 deletions(-)
  9.  
  10. diff --git a/armsrc/lfops.c b/armsrc/lfops.c
  11. index 7d497e3..4b6fb40 100644
  12. --- a/armsrc/lfops.c
  13. +++ b/armsrc/lfops.c
  14. @@ -950,7 +950,7 @@ void T55xxWriteBit(int bit)
  15. // Write one card block in page 0, no lock
  16. void T55xxWriteBlock(uint32_t Data, uint32_t Block, uint32_t Pwd, uint8_t PwdMode)
  17. {
  18. - unsigned int i;
  19. + uint32_t i;
  20.  
  21. FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
  22. FpgaSendCommand(FPGA_CMD_SET_DIVISOR, 95); //125Khz
  23. @@ -995,7 +995,7 @@ void T55xxWriteBlock(uint32_t Data, uint32_t Block, uint32_t Pwd, uint8_t PwdMod
  24. void T55xxReadBlock(uint32_t Block, uint32_t Pwd, uint8_t PwdMode)
  25. {
  26. uint8_t *dest = (uint8_t *)BigBuf;
  27. - int m=0, i=0;
  28. + uint32_t m=0, i=0;
  29.  
  30. FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
  31. m = sizeof(BigBuf);
  32. --
  33. 2.1.3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement