Skip to content

Fix duplicate MAX_CLIENTS definition - #3233

Open
entr0p1 wants to merge 1 commit into
meshcore-dev:devfrom
entr0p1:fix/centralise-max-clients
Open

Fix duplicate MAX_CLIENTS definition#3233
entr0p1 wants to merge 1 commit into
meshcore-dev:devfrom
entr0p1:fix/centralise-max-clients

Conversation

@entr0p1

@entr0p1 entr0p1 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

MAX_CLIENTS is defined in both src/helpers/ClientACL.h and examples/simple_repeater/MyMesh.h. Appears it was centralised in the former header file some time ago. Both are included in some places and, depending on which order they're in, either value can win.

This change drops the duplicate entry from the repeater firmware and bumps the central limit up to 32 (per the original repeater firmware value).

Changes:

  • Remove MAX_CLIENTS from repeater MyMesh.h
  • Increase MAX_CLIENTS limit in ClientACL.h to 32

MAX_CLIENTS is defined in both src/helpers/ClientACL.h and examples/simple_repeater/MyMesh.h. Appears it was centralised in the former header file some time ago. Both are included in some places and, depending on which order they're in, either value can win.

This change drops the duplicate entry from the repeater firmware and bumps the central limit up to 32 (per the original repeater firmware value).

Changes:
- Remove MAX_CLIENTS from repeater MyMesh.h
- Increase MAX_CLIENTS limit in ClientACL.h to 32
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

Successfully merging this pull request may close these issues.

1 participant