Phase 6: Radio config + path hash mode

This commit is contained in:
Jack Kingsman
2026-03-07 19:37:47 -08:00
parent 5c413bf949
commit 8948f2e504
9 changed files with 89 additions and 0 deletions
+2
View File
@@ -174,6 +174,8 @@ const baseConfig = {
tx_power: 17,
max_tx_power: 22,
radio: { freq: 910.525, bw: 62.5, sf: 7, cr: 5 },
path_hash_mode: 0,
path_hash_mode_supported: false,
};
const baseSettings = {
+2
View File
@@ -202,6 +202,8 @@ describe('App search jump target handling', () => {
tx_power: 17,
max_tx_power: 22,
radio: { freq: 910.525, bw: 62.5, sf: 7, cr: 5 },
path_hash_mode: 0,
path_hash_mode_supported: false,
});
mocks.api.getSettings.mockResolvedValue({
max_radio_contacts: 200,
@@ -158,6 +158,8 @@ describe('App startup hash resolution', () => {
tx_power: 17,
max_tx_power: 22,
radio: { freq: 910.525, bw: 62.5, sf: 7, cr: 5 },
path_hash_mode: 0,
path_hash_mode_supported: false,
});
mocks.api.getSettings.mockResolvedValue({
max_radio_contacts: 200,
+2
View File
@@ -41,6 +41,8 @@ function createConfig(overrides: Partial<RadioConfig> = {}): RadioConfig {
tx_power: 10,
max_tx_power: 20,
radio: { freq: 915, bw: 250, sf: 10, cr: 8 },
path_hash_mode: 0,
path_hash_mode_supported: false,
...overrides,
};
}
+2
View File
@@ -30,6 +30,8 @@ const baseConfig: RadioConfig = {
sf: 7,
cr: 5,
},
path_hash_mode: 0,
path_hash_mode_supported: false,
};
const baseHealth: HealthStatus = {