Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions firmware-nrf54lm20a/src/ota.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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 *,
Expand Down
Loading