Skip to content

Commit cbefcd4

Browse files
committed
Rate-limit sending packets to device
1 parent 65379fc commit cbefcd4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/cbsdk/src/sdk_session.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,9 @@ Result<void> SdkSession::start() {
869869
} else {
870870
impl->stats.packets_sent_to_device.fetch_add(1, std::memory_order_relaxed);
871871
}
872+
873+
// Rate-limit: older firmware processes one packet per 50µs
874+
std::this_thread::sleep_for(std::chrono::microseconds(50));
872875
}
873876

874877
if (has_packets) {

0 commit comments

Comments
 (0)