Commit 16c49cbb authored by TMRh20's avatar TMRh20

Merge pull request #129 from komby/master

Added getChannel Method to allow for verification of the configured c…
parents d85dd188 0a8b1d3d
......@@ -448,6 +448,11 @@ void RF24::setChannel(uint8_t channel)
write_register(RF_CH,rf24_min(channel,max_channel));
}
uint8_t RF24::getChannel()
{
return read_register(RF_CH);
}
/****************************************************************************/
void RF24::setPayloadSize(uint8_t size)
......
......@@ -711,6 +711,13 @@ s *
* @param channel Which RF channel to communicate on, 0-127
*/
void setChannel(uint8_t channel);
/**
* Get RF communication channel
*
* @return The currently configured RF Channel
*/
uint8_t getChannel(void);
/**
* Set Static Payload Size
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment