Skip to content

Commit

Permalink
Fixed OR operator typo for NTAG2xx writes
Browse files Browse the repository at this point in the history
  • Loading branch information
microbuilder committed Mar 17, 2015
1 parent 268da03 commit 88fe950
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Adafruit_PN532.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
@section HISTORY
v2.1 - Added NTAG2xx helper functions
v2.0 - Refactored to add I2C support from Adafruit_NFCShield_I2C library.
v1.4 - Added setPassiveActivationRetries()
Expand Down Expand Up @@ -1329,7 +1331,7 @@ uint8_t Adafruit_PN532::ntag2xx_WritePage (uint8_t page, uint8_t * data)
// NTAG 215 135 4 129
// NTAG 216 231 4 225

if ((page < 4) | (page > 225))
if ((page < 4) || (page > 225))
{
#ifdef MIFAREDEBUG
Serial.println(F("Page value out of range"));
Expand Down

0 comments on commit 88fe950

Please sign in to comment.