mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Merge pull request #2012 from hb9xar/master
gcc 11.2.1 - missing includes / correction for LEGIC CRC16 calculation
This commit is contained in:
commit
c953ad6957
3 changed files with 3 additions and 1 deletions
|
@ -682,7 +682,7 @@ static int CmdLegicCalcCrc(const char *Cmd) {
|
|||
|
||||
switch (type) {
|
||||
case 16:
|
||||
init_table(CRC_LEGIC);
|
||||
init_table(CRC_LEGIC_16);
|
||||
PrintAndLogEx(SUCCESS, "Legic crc16: %X", crc16_legic(data, data_len, mcc[0]));
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include <time.h>
|
||||
#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
#include <inttypes.h>
|
||||
#include "util_posix.h"
|
||||
|
||||
#define AEND "\x1b[0m"
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <time.h>
|
||||
#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
#include <inttypes.h>
|
||||
//#include <mbedtls/aes.h>
|
||||
#include "util_posix.h"
|
||||
#include "randoms.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue