Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channel 13 is always added #40

Open
atom-smasher opened this issue Jun 15, 2022 · 1 comment
Open

Channel 13 is always added #40

atom-smasher opened this issue Jun 15, 2022 · 1 comment

Comments

@atom-smasher
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant