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

Specifying a single channel only uses channel 1 #39

Open
atom-smasher opened this issue Jun 15, 2022 · 2 comments
Open

Specifying a single channel only uses channel 1 #39

atom-smasher opened this issue Jun 15, 2022 · 2 comments

Comments

@atom-smasher
Copy link

This line is causing problems:

  if (sizeof(channels) > 1) {

If I'm only wanting to use one channel, eg:

const uint8_t channels[] = {12};

That test for sizeof(channels) fails, and the only channel that's actually used is channel 1.

@atom-smasher
Copy link
Author

I think changing this line in the // run-time variables section from:

uint8_t wifi_channel = 1;

to this:

uint8_t wifi_channel = channels[0];

might be the fix.

@atom-smasher
Copy link
Author

Fixed with a few other things - 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