action_enter_dfu()'s BLE OTA branch called ble_ota_start() (hence
bt_gatt_service_register()) directly from the button thread, never
extended to this pattern when BLE OTA was added (af21c78) even though
every other button action that touches the Bluetooth host already
defers to the mesh thread (same class of issue as 77befc3, for the
BLE on/off toggle).
Confirmed on real V4.3 and WT2 hardware: the DFU page's long-press
sequence never opened the window in a normal build (silent failure,
falls back to "Press to Run"), while the CLI start ota command on the
same binary opened it reliably every time. Bisected before landing on
this: CONFIG_USB_DEVICE_STACK_NEXT=n and CONFIG_ZEPHCORE_RESET_ON_FATAL_ERROR=n
alone both left it broken (also ruling out a hidden crash-and-reboot,
since disabling the reboot never produced a hang). CONFIG_LOG=y alone
fixed it even with the BLE module logging suppressed, which is what
pointed at a thread-context issue rather than a hardware or logging
dependency.
mesh_ble_ota_open() now posts a new UI_ACTION_BLE_OTA_OPEN flag and
returns immediately; mesh_handle_ui_actions() makes the real call and
logs the result. Both ui-button and ui-joystick call sites updated for
the new void signature; the DFU page already polls
mesh_ble_ota_remaining_s() every render, so the screen catches up on
the next redraw.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>