From b9c82b57783c954104d67f8860eeab251e5340c2 Mon Sep 17 00:00:00 2001 From: theshaun Date: Mon, 15 Jun 2026 23:21:12 +1000 Subject: [PATCH] Resolve gpio_chip + use_gpiod_backend not being set during setup --- GITpyMC_core | 1 + repeater/web/api_endpoints.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 160000 GITpyMC_core diff --git a/GITpyMC_core b/GITpyMC_core new file mode 160000 index 0000000..5649ffe --- /dev/null +++ b/GITpyMC_core @@ -0,0 +1 @@ +Subproject commit 5649ffe04ccec3febef2b0d2d5509e1b4ed21ad2 diff --git a/repeater/web/api_endpoints.py b/repeater/web/api_endpoints.py index 5dad39a..f8f26c3 100644 --- a/repeater/web/api_endpoints.py +++ b/repeater/web/api_endpoints.py @@ -1342,6 +1342,12 @@ class APIEndpoints: config_yaml["sx1262"]["use_dio2_rf"] = hw_config.get("use_dio2_rf", False) if "is_waveshare" in hw_config: config_yaml["sx1262"]["is_waveshare"] = hw_config.get("is_waveshare", False) + if "gpio_chip" in hw_config: + config_yaml["sx1262"]["gpio_chip"] = hw_config.get("gpio_chip", 0) + if "use_gpiod_backend" in hw_config: + config_yaml["sx1262"]["use_gpiod_backend"] = hw_config.get( + "use_gpiod_backend", False + ) # Write updated config with open(self._config_path, "w") as f: yaml.dump(config_yaml, f, default_flow_style=False, sort_keys=False)