mirror of
https://github.com/Proxmark/proxmark3.git
synced 2024-11-10 17:30:07 +08:00
Legic: fixed write (#655)
Due to an oversight the bytes to be written were fetched from the wrong location. This is fixed now.
This commit is contained in:
parent
da05bc6eca
commit
f684231796
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ void LegicRfWriter(int bytes, int offset) {
|
|||
|
||||
// write in reverse order, only then is DCF (decremental field) writable
|
||||
while(bytes-- > 0 && !BUTTON_PRESS()) {
|
||||
if(!write_byte(bytes + offset, BigBuf[bytes], card.addrsize)) {
|
||||
if(!write_byte(bytes + offset, BigBuf[bytes + offset], card.addrsize)) {
|
||||
Dbprintf("operation failed @ 0x%03.3x", bytes);
|
||||
goto OUT;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue