mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
fix: sc upg
This commit is contained in:
parent
f70b8be5de
commit
44e300930f
2 changed files with 1 additions and 4 deletions
|
@ -409,10 +409,6 @@ uint8_t I2C_ReadFW(uint8_t *data, uint8_t msb, uint8_t lsb, uint8_t device_addre
|
||||||
while (len) {
|
while (len) {
|
||||||
len--;
|
len--;
|
||||||
*data = I2C_ReadByte();
|
*data = I2C_ReadByte();
|
||||||
// 读取的第一个字节为后续长度
|
|
||||||
// The first byte read is the message length
|
|
||||||
if (!readcount && (len > *data))
|
|
||||||
len = *data;
|
|
||||||
|
|
||||||
if (len == 0)
|
if (len == 0)
|
||||||
I2C_NoAck();
|
I2C_NoAck();
|
||||||
|
|
|
@ -77,6 +77,7 @@ typedef struct{
|
||||||
|
|
||||||
// RDV40, Smart card operations
|
// RDV40, Smart card operations
|
||||||
#define CMD_SMART_SEND 0x0140
|
#define CMD_SMART_SEND 0x0140
|
||||||
|
#define CMD_SMART_UPGRADE 0x0141
|
||||||
|
|
||||||
// For low-frequency tags
|
// For low-frequency tags
|
||||||
#define CMD_READ_TI_TYPE 0x0202
|
#define CMD_READ_TI_TYPE 0x0202
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue