Commit c4d222ce authored by komby's avatar komby

Added getChannel Method to allow for verification of the configured channel

parent c79ccc70
......@@ -452,6 +452,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)
......
......@@ -709,6 +709,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