fix(ble): added missed ts sync reset
(cherry picked from commit d1d07eb60a6e822c61516154b090e69f61a0a765) Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
This commit is contained in:
@@ -139,6 +139,7 @@ bool ble_log_sync_enable(bool enable)
|
||||
return false;
|
||||
}
|
||||
rt_ts_enabled = enable;
|
||||
ble_log_ts_reset(enable);
|
||||
return true;
|
||||
}
|
||||
#endif /* CONFIG_BLE_LOG_TS_ENABLED */
|
||||
|
||||
@@ -73,3 +73,12 @@ void ble_log_ts_info_update(ble_log_ts_info_t **info)
|
||||
|
||||
*info = ts_info;
|
||||
}
|
||||
|
||||
void ble_log_ts_reset(bool status)
|
||||
{
|
||||
if (!status && !ts_info->io_level) {
|
||||
gpio_set_level(CONFIG_BLE_LOG_SYNC_IO_NUM, 1);
|
||||
}
|
||||
ts_info->io_level = 0;
|
||||
gpio_set_level(CONFIG_BLE_LOG_SYNC_IO_NUM, 0);
|
||||
}
|
||||
|
||||
@@ -53,5 +53,6 @@ typedef struct {
|
||||
bool ble_log_ts_init(void);
|
||||
void ble_log_ts_deinit(void);
|
||||
void ble_log_ts_info_update(ble_log_ts_info_t **ts_info);
|
||||
void ble_log_ts_reset(bool status);
|
||||
|
||||
#endif /* __BLE_LOG_TS_H__ */
|
||||
|
||||
Reference in New Issue
Block a user