Browse Source

修复release版本下串口接收不到消息的BUG

master
zhaohe 1 year ago
parent
commit
005bb9cfee
  1. 4
      src/camera_light_src_timing_controller/qt_serial_datachannel.cpp

4
src/camera_light_src_timing_controller/qt_serial_datachannel.cpp

@ -25,8 +25,10 @@ void QTDataChannel::init() {
// ZLOGI(TAG, "rx %d bytes", rx_cnt); // ZLOGI(TAG, "rx %d bytes", rx_cnt);
if (m_rxcb) m_rxcb(rx, rx_cnt); if (m_rxcb) m_rxcb(rx, rx_cnt);
} }
this_thread::sleep_for(chrono::microseconds(100));
} else {
this_thread::sleep_for(chrono::microseconds(10000));
} }
// this_thread::sleep_for(chrono::microseconds(1000));
} }
})); }));
} }

Loading…
Cancel
Save