Commit 9e68f9e1 authored by TMRh20's avatar TMRh20

Fix per #183

- Update scanner examples to use channels 0-125
- Update documentation indicating channels 0-125 only
- Per datasheet radio only has 126 channels
parent ed9ae08d
......@@ -708,7 +708,7 @@ s *
/**
* Set RF communication channel
*
* @param channel Which RF channel to communicate on, 0-127
* @param channel Which RF channel to communicate on, 0-125
*/
void setChannel(uint8_t channel);
......
......@@ -34,7 +34,7 @@ RF24 radio(7,8);
// Channel info
//
const uint8_t num_channels = 128;
const uint8_t num_channels = 126;
uint8_t values[num_channels];
//
......
......@@ -48,8 +48,7 @@ RF24 radio(RPI_V2_GPIO_P1_15, RPI_V2_GPIO_P1_24, BCM2835_SPI_SPEED_8MHZ);
//
// Channel info
//
//const uint8_t num_channels = 128;
const uint8_t num_channels = 120;
const uint8_t num_channels = 126;
uint8_t values[num_channels];
......
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