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()