From 35409c6647dfdbb1b5ea3e84cf5f73384efbe64a Mon Sep 17 00:00:00 2001 From: MacNite Date: Mon, 7 Sep 2026 20:14:38 +0200 Subject: [PATCH] Fix throughput spike OTA timeout build --- firmware-nrf54lm20a/src/ota.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/firmware-nrf54lm20a/src/ota.c b/firmware-nrf54lm20a/src/ota.c index 52e0cd9..1101741 100644 --- a/firmware-nrf54lm20a/src/ota.c +++ b/firmware-nrf54lm20a/src/ota.c @@ -52,6 +52,12 @@ static void record_errno(int rc) } static void arm_timeout_handler(struct k_work *work); +static void reboot_handler(struct k_work *work); +static void stall_timeout_handler(struct k_work *work); +K_WORK_DELAYABLE_DEFINE(arm_timeout_work, arm_timeout_handler); +K_WORK_DELAYABLE_DEFINE(reboot_work, reboot_handler); +K_WORK_DELAYABLE_DEFINE(stall_timeout_work, stall_timeout_handler); + #if ENABLE_THROUGHPUT_SPIKE void ota_release_arm_timeout(void) { @@ -60,12 +66,6 @@ void ota_release_arm_timeout(void) } #endif -static void reboot_handler(struct k_work *work); -static void stall_timeout_handler(struct k_work *work); -K_WORK_DELAYABLE_DEFINE(arm_timeout_work, arm_timeout_handler); -K_WORK_DELAYABLE_DEFINE(reboot_work, reboot_handler); -K_WORK_DELAYABLE_DEFINE(stall_timeout_work, stall_timeout_handler); - static ssize_t ctrl_write(struct bt_conn *, const struct bt_gatt_attr *, const void *, uint16_t, uint16_t, uint8_t); static ssize_t data_write(struct bt_conn *, const struct bt_gatt_attr *,