Skip to content

Commit 9f18a1d

Browse files
authored
Merge pull request #295 from theshaun/dev
Update Femtofox radio settings + fix setup
2 parents de129c1 + 8b948e1 commit 9f18a1d

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

radio-settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,14 @@
136136
"cs_id": 0,
137137
"cs_pin": 16,
138138
"gpio_chip": 1,
139-
"use_gpiod_backend": true,
140139
"reset_pin": 25,
141140
"busy_pin": 22,
142141
"irq_pin": 23,
143142
"txen_pin": -1,
144143
"rxen_pin": 24,
145144
"txled_pin": -1,
146145
"rxled_pin": -1,
147-
"tx_power": 30,
146+
"tx_power": 22,
148147
"use_dio3_tcxo": true,
149148
"preamble_length": 32
150149
},
@@ -154,7 +153,6 @@
154153
"cs_id": 0,
155154
"cs_pin": 16,
156155
"gpio_chip": 1,
157-
"use_gpiod_backend": true,
158156
"reset_pin": 25,
159157
"busy_pin": 22,
160158
"irq_pin": 23,

repeater/web/api_endpoints.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,12 @@ def setup_wizard(self):
13421342
config_yaml["sx1262"]["use_dio2_rf"] = hw_config.get("use_dio2_rf", False)
13431343
if "is_waveshare" in hw_config:
13441344
config_yaml["sx1262"]["is_waveshare"] = hw_config.get("is_waveshare", False)
1345+
if "gpio_chip" in hw_config:
1346+
config_yaml["sx1262"]["gpio_chip"] = hw_config.get("gpio_chip", 0)
1347+
if "use_gpiod_backend" in hw_config:
1348+
config_yaml["sx1262"]["use_gpiod_backend"] = hw_config.get(
1349+
"use_gpiod_backend", False
1350+
)
13451351
# Write updated config
13461352
with open(self._config_path, "w") as f:
13471353
yaml.dump(config_yaml, f, default_flow_style=False, sort_keys=False)

0 commit comments

Comments
 (0)