mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-16 01:53:02 +08:00
reduce crc size, change magic
This commit is contained in:
parent
44bbb7d2c7
commit
43608589e3
1 changed files with 2 additions and 4 deletions
|
@ -41,14 +41,12 @@ typedef struct {
|
|||
uint16_t cmd;
|
||||
} PACKED UsbCommandNGPreamble;
|
||||
|
||||
#define USB_PREAMBLE_MAGIC 0xAA5500FF
|
||||
#define USB_PREAMBLE_MAGIC 0x61334d50 // PM3a
|
||||
|
||||
typedef struct {
|
||||
uint32_t crc;
|
||||
uint16_t crc;
|
||||
} PACKED UsbCommandNGPostamble;
|
||||
|
||||
#define USB_POSTAMBLE_MAGIC 0xFF0055AA
|
||||
|
||||
#define USB_PACKET_NG_MINLEN (sizeof(UsbCommandNGPreamble) + sizeof(UsbCommandNGPostamble))
|
||||
#define USB_PACKET_NG_MAXLEN (sizeof(UsbCommandNGPreamble) + USB_CMD_DATA_SIZE + sizeof(UsbCommandNGPostamble))
|
||||
|
||||
|
|
Loading…
Reference in a new issue