Skip to content

Commit 80c92ba

Browse files
author
Zhou Xiao
committed
fix(ble): fixed ts sync sleep support trigger
1 parent 0904640 commit 80c92ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/bt/common/ble_log/ble_log_spi_out.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ IRAM_ATTR void ble_log_spi_out_ll_write(uint32_t len, const uint8_t *addr, uint3
10531053

10541054
#if SPI_OUT_TS_SYNC_SLEEP_SUPPORT
10551055
if (ts_sync_inited && ts_sync_enabled) {
1056-
if ((last_tx_done_ts - ts_sync_data.esp_ts) >= SPI_OUT_TS_SYNC_TIMEOUT) {
1056+
if (last_tx_done_ts >= (SPI_OUT_TS_SYNC_TIMEOUT + ts_sync_data.esp_ts)) {
10571057
if (spi_out_log_cb_check_trans(ll_task_log_cb, sizeof(ts_sync_data_t), &need_append)) {
10581058
spi_out_ts_sync_toggle();
10591059
spi_out_log_cb_write(ll_task_log_cb, (const uint8_t *)&ts_sync_data,

0 commit comments

Comments
 (0)