From 5c92bac5b55573e2167fd0295eb2d3ff907ef448 Mon Sep 17 00:00:00 2001 From: h2zero Date: Sun, 22 Dec 2024 18:09:09 -0700 Subject: [PATCH] Add config option for BLE OTA updates --- scripts/replace_lib.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/replace_lib.py b/scripts/replace_lib.py index a792cc5c6d..da9213bcca 100644 --- a/scripts/replace_lib.py +++ b/scripts/replace_lib.py @@ -24,4 +24,8 @@ def main(): except Exception as e: print(f"Error occurred: {e}") + if "'-DUSE_BLE_OTA'" in env["BUILD_FLAGS"]: + env["BUILD_FLAGS"].remove("'-DCONFIG_BT_NIMBLE_ROLE_BROADCASTER_DISABLED'") + env["BUILD_FLAGS"].remove("'-DCONFIG_BT_NIMBLE_ROLE_PERIPHERAL_DISABLED'") + main()