esp8266_beaconSpam icon indicating copy to clipboard operation
esp8266_beaconSpam copied to clipboard

Channel 13 is always added

Open atom-smasher opened this issue 2 years ago • 1 comments

Channel 13 is always added, when two or more channels are specified.

Test case, set two channels:

const uint8_t channels[] = {4, 5};

What's actually used are channels 4, 5, and 13

This line:

    if (channelIndex > sizeof(channels)) channelIndex = 0;

Needs to be changed to:

    if (channelIndex >= sizeof(channels)) channelIndex = 0;

atom-smasher avatar Jun 15 '22 18:06 atom-smasher

The problem was actually something else, fixed here - https://github.com/atom-smasher/esp8266_beaconSpam

atom-smasher avatar Jul 26 '22 04:07 atom-smasher