FIX: Fixed some warnings I didn't take notice off.

- memcpy should have been "memset"
- forgot to add function declaration into header file.
This commit is contained in:
iceman1001 2016-07-28 22:17:44 +02:00
parent 758f5ee3e5
commit ba4ad25b37
2 changed files with 2 additions and 2 deletions

View file

@ -547,7 +547,7 @@ int CmdLegicRfFill(const char *Cmd) {
int i;
UsbCommand c = {CMD_DOWNLOADED_SIM_SAMPLES_125K, {0, 0, 0}};
memcpy(c.d.asBytes, cmd.arg[2], 48);
memset(c.d.asBytes, cmd.arg[2], 48);
for(i = 0; i < 22; i++) {
c.arg[0] = i*48;

View file

@ -70,7 +70,7 @@ uint32_t CRC8ja(uint8_t *buff, size_t size);
// test crc 16.
uint32_t CRC16_DNP(uint8_t *buff, size_t size);
uint32_t CRC16_CCITT(uint8_t *buff, size_t size);
/* Static initialization of a crc structure */
#define CRC_INITIALIZER(_order, _polynom, _initial_value, _final_xor) { \