Skip to content

Commit

Permalink
Merge pull request #83 from jorihardman/master
Browse files Browse the repository at this point in the history
Fix operator precedence for isAckPayloadAvailable.
  • Loading branch information
TMRh20 committed Mar 4, 2015
2 parents e3f9f9a + 8bd5289 commit d28cfcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RF24.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ void RF24::writeAckPayload(uint8_t pipe, const void* buf, uint8_t len)

bool RF24::isAckPayloadAvailable(void)
{
return ! read_register(FIFO_STATUS) & _BV(RX_EMPTY);
return !(read_register(FIFO_STATUS) & _BV(RX_EMPTY));
}

/****************************************************************************/
Expand Down

0 comments on commit d28cfcb

Please sign in to comment.