Browse Source
Merge pull request #2505 from liamcottle/feature/companion-repeat-build-flag
Add build flag to configure allowed repeat frequency range
pull/2510/head
Huw Duddy
4 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
examples/companion_radio/MyMesh.cpp
|
|
@ -982,9 +982,13 @@ struct FreqRange { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
static FreqRange repeat_freq_ranges[] = { |
|
|
static FreqRange repeat_freq_ranges[] = { |
|
|
|
|
|
#ifdef ALLOWED_REPEAT_FREQ_RANGE |
|
|
|
|
|
ALLOWED_REPEAT_FREQ_RANGE |
|
|
|
|
|
#else |
|
|
{ 433000, 433000 }, |
|
|
{ 433000, 433000 }, |
|
|
{ 869000, 869000 }, |
|
|
{ 869000, 869000 }, |
|
|
{ 918000, 918000 } |
|
|
{ 918000, 918000 } |
|
|
|
|
|
#endif |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
bool MyMesh::isValidClientRepeatFreq(uint32_t f) const { |
|
|
bool MyMesh::isValidClientRepeatFreq(uint32_t f) const { |
|
|
|