|
@ -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));
|
|
|
|
|
|
} |
|
|
} |
|
|
})); |
|
|
})); |
|
|
} |
|
|
} |
|
|