Skip to content

Commit

Permalink
Minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
neomilium committed Apr 17, 2018
1 parent 71457c1 commit f124b7c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions PN532/PN532.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,7 @@ uint8_t PN532::mifareultralight_WritePage (uint8_t page, uint8_t *buffer)
bool PN532::inDataExchange(uint8_t *send, uint8_t sendLength, uint8_t *response, uint8_t *responseLength)
{
uint8_t i;

pn532_packetbuffer[0] = 0x40; // PN532_COMMAND_INDATAEXCHANGE;
pn532_packetbuffer[0] = PN532_COMMAND_INDATAEXCHANGE;
pn532_packetbuffer[1] = inListedTag;

if (HAL(writeCommand)(pn532_packetbuffer, 2, send, sendLength)) {
Expand Down Expand Up @@ -839,7 +838,7 @@ bool PN532::inListPassiveTarget()
}

int8_t PN532::tgInitAsTarget(const uint8_t* command, const uint8_t len, const uint16_t timeout){

int8_t status = HAL(writeCommand)(command, len);
if (status < 0) {
return -1;
Expand Down Expand Up @@ -953,5 +952,3 @@ int16_t PN532::inRelease(const uint8_t relevantTarget){
// read data packet
return HAL(readResponse)(pn532_packetbuffer, sizeof(pn532_packetbuffer));
}


0 comments on commit f124b7c

Please sign in to comment.