Skip to content

Commit

Permalink
piconet: silly wabbit, uint8_t is always >= 0!
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeryan committed Sep 5, 2015
1 parent a5e0bbb commit 5d9f832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/bluetooth_piconet.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void btbb_piconet_set_channel_seen(btbb_piconet *pn, uint8_t channel)

uint8_t btbb_piconet_get_channel_seen(btbb_piconet *pn, uint8_t channel)
{
if(channel < BT_NUM_CHANNELS && channel >= 0)
if(channel < BT_NUM_CHANNELS)
return ( pn->afh_map[channel/8] & (1 << (channel % 8)) ) != 0;
else
return 1;
Expand Down

0 comments on commit 5d9f832

Please sign in to comment.