Resolved various compiler warnings
This should make Jenkins happy.
This commit is contained in:
@@ -61,6 +61,7 @@ void PN532::begin()
|
||||
/**************************************************************************/
|
||||
void PN532::PrintHex(const uint8_t *data, const uint32_t numBytes)
|
||||
{
|
||||
(void)data;
|
||||
for (uint8_t i = 0; i < numBytes; i++) {
|
||||
DMSG("0x");
|
||||
DMSG_HEX(data[i]);
|
||||
@@ -86,11 +87,11 @@ void PN532::PrintHexChar(const uint8_t *data, const uint32_t numBytes)
|
||||
}
|
||||
DMSG(" ");
|
||||
for (uint8_t i = 0; i < numBytes; i++) {
|
||||
char c = data[i];
|
||||
uint8_t c = data[i];
|
||||
if (c <= 0x1f || c > 0x7f) {
|
||||
DMSG('.');
|
||||
} else {
|
||||
DMSG(c);
|
||||
DMSG((char)c);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -548,7 +549,7 @@ uint8_t PN532::mifareclassic_WriteNDEFURI (uint8_t sectorNumber, uint8_t uriIden
|
||||
// in NDEF records
|
||||
|
||||
// Setup the sector buffer (w/pre-formatted TLV wrapper and NDEF message)
|
||||
uint8_t sectorbuffer1[16] = {0x00, 0x00, 0x03, len + 5, 0xD1, 0x01, len + 1, 0x55, uriIdentifier, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
uint8_t sectorbuffer1[16] = {0x00, 0x00, 0x03, (uint8_t)(len + 5), 0xD1, 0x01, (uint8_t)(len + 1), 0x55, uriIdentifier, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
uint8_t sectorbuffer2[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
uint8_t sectorbuffer3[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
uint8_t sectorbuffer4[16] = {0xD3, 0xF7, 0xD3, 0xF7, 0xD3, 0xF7, 0x7F, 0x07, 0x88, 0x40, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
|
||||
@@ -653,6 +654,7 @@ uint8_t PN532::mifareultralight_ReadPage (uint8_t page, uint8_t *buffer)
|
||||
bool PN532::inDataExchange(uint8_t *send, uint8_t sendLength, uint8_t *response, uint8_t *responseLength)
|
||||
{
|
||||
uint8_t i;
|
||||
(void)i;
|
||||
|
||||
pn532_packetbuffer[0] = 0x40; // PN532_COMMAND_INDATAEXCHANGE;
|
||||
pn532_packetbuffer[1] = inListedTag;
|
||||
|
||||
Reference in New Issue
Block a user