From 915ec39779a12c9db19b8862e8a916a7f06f3172 Mon Sep 17 00:00:00 2001 From: Tu Nguyen Date: Wed, 26 Nov 2025 22:12:46 +0700 Subject: [PATCH] reduce interval time to 7.5ms and remove sleep --- omi/firmware/omi/omi.conf | 6 +++--- omi/firmware/omi/src/lib/core/storage.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/omi/firmware/omi/omi.conf b/omi/firmware/omi/omi.conf index 93d8cd5831..146c0019ad 100644 --- a/omi/firmware/omi/omi.conf +++ b/omi/firmware/omi/omi.conf @@ -207,9 +207,9 @@ CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=y # Set preferred connection parameters # 7.5ms -CONFIG_BT_PERIPHERAL_PREF_MIN_INT=24 -# 15ms -CONFIG_BT_PERIPHERAL_PREF_MAX_INT=24 +CONFIG_BT_PERIPHERAL_PREF_MIN_INT=6 +# 7.5ms +CONFIG_BT_PERIPHERAL_PREF_MAX_INT=6 CONFIG_BT_PERIPHERAL_PREF_LATENCY=0 # 4 seconds CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400 diff --git a/omi/firmware/omi/src/lib/core/storage.c b/omi/firmware/omi/src/lib/core/storage.c index fdf0a1fb5c..8b54bf4d80 100644 --- a/omi/firmware/omi/src/lib/core/storage.c +++ b/omi/firmware/omi/src/lib/core/storage.c @@ -296,7 +296,7 @@ void storage_write(void) write_to_gatt(conn); heartbeat_count = (heartbeat_count + 1) % (MAX_HEARTBEAT_FRAMES + 1); - k_msleep(100); + transport_started = 0; if (remaining_length == 0) { if (stop_started) {