Apply BLE_PIN_CODE only to companion builds
Build and deploy Docs site to GitHub Pages / github-pages (push) Canceled after 48s
Run Unit Tests / nrf52-companion-smoke (push) Canceled after 0s
Run Unit Tests / nrf52-sensor-smoke (push) Canceled after 0s
Run Unit Tests / optional-display-smoke (push) Canceled after 0s
Run Unit Tests / esp32-sensor-smoke (push) Canceled after 0s
Run Unit Tests / esp32-ethernet-companion-smoke (push) Canceled after 0s
Run Unit Tests / esp32-classic-companion-smoke (push) Canceled after 0s
Run Unit Tests / esp32-constrained-companion-smoke (push) Canceled after 0s
Run Unit Tests / cross-platform-smoke (push) Canceled after 0s
Run Unit Tests / cardputer-smoke (push) Canceled after 0s
Run Unit Tests / management-reports (push) Canceled after 0s
Run Unit Tests / stm32-companion-smoke (push) Canceled after 0s
Run Unit Tests / stm32-mini-repeater-smoke (push) Canceled after 0s
Run Unit Tests / bootloader-version (push) Canceled after 0s
Run Unit Tests / test (push) Canceled after 0s
Run Unit Tests / hosted-doc-links (push) Canceled after 0s

This commit is contained in:
rich committed 2026-10-28 10:41:32 -04:00
1 parent cc4d2c2321
commit bcb5c6a08a
1 file changed
+8 -2
+8 -2
View File
@@ -8,7 +8,7 @@
# Defaults baked in (edit the list below to change them):
# Radio 919.5 MHz / BW500 / SF10 / CR5 (matches the local mesh;
# Hazelwood KM-Test repeater)
# BLE PIN code macro 123456 (on display boards such as Heltec V3 the
# BLE PIN code macro 123456, companion targets only (on display boards such as Heltec V3 the
# firmware treats 123456 as "show a random PIN on screen each
# session"; set a fixed PIN at runtime from the app/CLI instead)
# Settings profile: target defaults (--profile default), not Cascade
@@ -29,7 +29,13 @@
set -e
LOCAL_BUILD_FLAGS="-DLORA_FREQ=919.5 -DLORA_BW=500 -DLORA_SF=10 -DLORA_CR=5 -DBLE_PIN_CODE=123456"
LOCAL_BUILD_FLAGS="-DLORA_FREQ=919.5 -DLORA_BW=500 -DLORA_SF=10 -DLORA_CR=5"
# BLE_PIN_CODE only matters to companions. scripts/check_firmware_ram.py
# reserves 5,920 bytes of Bluetooth worker stacks on nRF52 whenever it is
# defined, which pushes the RAK4631 repeater over its runtime RAM budget.
case "${2:-}" in
*companion*) LOCAL_BUILD_FLAGS="${LOCAL_BUILD_FLAGS} -DBLE_PIN_CODE=123456" ;;
esac
export PLATFORMIO_BUILD_FLAGS="${PLATFORMIO_BUILD_FLAGS:+${PLATFORMIO_BUILD_FLAGS} }${LOCAL_BUILD_FLAGS}"