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)