fix: sc upg

This commit is contained in:
Chris 2018-07-05 11:22:43 +02:00
commit 44e300930f
2 changed files with 1 additions and 4 deletions

View file

@ -409,10 +409,6 @@ uint8_t I2C_ReadFW(uint8_t *data, uint8_t msb, uint8_t lsb, uint8_t device_addre
while (len) {
len--;
*data = I2C_ReadByte();
// 读取的第一个字节为后续长度
// The first byte read is the message length
if (!readcount && (len > *data))
len = *data;
if (len == 0)
I2C_NoAck();

View file

@ -77,6 +77,7 @@ typedef struct{
// RDV40, Smart card operations
#define CMD_SMART_SEND 0x0140
#define CMD_SMART_UPGRADE 0x0141
// For low-frequency tags
#define CMD_READ_TI_TYPE 0x0202