File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
components/bt/common/ble_log Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -747,10 +747,6 @@ static void spi_out_ts_sync_deinit(void)
747747
748748static void spi_out_ts_sync_enable (bool enable )
749749{
750- // Reset ts sync io
751- ts_sync_data .io_level = false;
752- gpio_set_level (SPI_OUT_SYNC_IO_NUM , (uint32_t )ts_sync_data .io_level );
753-
754750 // Update ts sync status
755751 ts_sync_enabled = enable ;
756752 if (enable ) {
@@ -771,7 +767,12 @@ static void spi_out_ts_sync_enable(bool enable)
771767 }
772768 }
773769#endif // !SPI_OUT_TS_SYNC_SLEEP_SUPPORT
770+ if (!ts_sync_data .io_level ) {
771+ gpio_set_level (SPI_OUT_SYNC_IO_NUM , 1 );
772+ }
774773 }
774+ ts_sync_data .io_level = 0 ;
775+ gpio_set_level (SPI_OUT_SYNC_IO_NUM , (uint32_t )ts_sync_data .io_level );
775776}
776777
777778static void spi_out_ts_sync_toggle (void )
You can’t perform that action at this time.
0 commit comments