-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Lora settings expansion and validation logic improvement #9878
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
Changes from 10 commits
fe1f5d9
3ff2c3b
9f1a824
feb5172
e71e6a9
36a8215
0254105
5259494
cf9712e
eb240d7
237ac2c
0ada155
4a5da3e
ef72c40
2e84995
251b64f
b6d55af
c73b592
ca28017
3c3ddde
d768507
a9bc5ce
e14a6a5
e475562
d554c82
e3d5b49
4c28a6b
b4ca217
f9ea6be
f5e959d
b471666
eca8218
dbedf27
c31c904
dfc38fc
ca74713
1d9d6bb
78d8802
d060e0d
107191b
f1a56bc
7ef568b
2ee48b7
3cba534
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,7 +127,7 @@ class RadioInterface | |
| * Coerce LoRa config fields (bandwidth/spread_factor) derived from presets. | ||
| * This is used during early bootstrapping so UIs that display these fields directly remain consistent. | ||
| */ | ||
| static void bootstrapLoRaConfigFromPreset(meshtastic_Config_LoRaConfig &loraConfig); | ||
| // static void bootstrapLoRaConfigFromPreset(meshtastic_Config_LoRaConfig &loraConfig); // maybe superseded? | ||
|
||
|
|
||
| /** | ||
| * Return true if we think the board can go to sleep (i.e. our tx queue is empty, we are not sending or receiving) | ||
|
|
@@ -234,6 +234,15 @@ class RadioInterface | |
| // Whether we use the default frequency slot given our LoRa config (region and modem preset) | ||
| static bool uses_default_frequency_slot; | ||
|
|
||
| // Check if a candidate region is compatible and valid. | ||
| static bool validateConfigRegion(meshtastic_Config_LoRaConfig &loraConfig); | ||
|
|
||
| // Check if a candidate radio configuration is valid. | ||
| static bool validateConfigLora(meshtastic_Config_LoRaConfig &loraConfig); | ||
|
|
||
| // Make a candidate radio configuration valid, even if it isn't. | ||
| static void clampConfigLora(meshtastic_Config_LoRaConfig &loraConfig); | ||
|
|
||
| protected: | ||
| int8_t power = 17; // Set by applyModemConfig() | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.