Exclude oversized RAK4631 repeater from LoRa OTA

This commit is contained in:
mikecarper committed 2026-07-15 08:29:33 -07:00
1 parent dce99fd5b3
commit 28afb0cd2c
2 files changed
+8 -3

No files matched your search

+6 -2
View File
@@ -28,11 +28,15 @@ import motalib as ml
def _ota_enabled() -> bool:
disabled = False
enabled = False
for d in env.get("CPPDEFINES", []): # noqa: F821
name = d[0] if isinstance(d, (list, tuple)) else d
if name == "DISABLE_LORA_OTA":
disabled = True
if name == "ENABLE_OTA":
return True
return False
enabled = True
return enabled and not disabled
def _is_nrf52() -> bool: