Skip to content

Commit bf332a1

Browse files
committed
Fix postoner loop on dongle.
1 parent 979cb34 commit bf332a1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

right/src/usb_semaphore.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ void UsbSemaphore_Release(report_send_state_t* st) {
4848
st->retries = 0;
4949
st->inFlight = false;
5050
UsbReportSender_GivenUp = false;
51-
EventScheduler_Schedule(Timer_GetCurrentTime(), EventSchedulerEvent_Postponer, "Usb semaphore released. Recalculate throttle delay.");
51+
if (DEVICE_IS_MASTER) {
52+
EventScheduler_Schedule(Timer_GetCurrentTime(), EventSchedulerEvent_Postponer, "Usb semaphore released. Recalculate throttle delay.");
53+
}
5254
}
5355

5456
// NOTE: if we retry too soon, we might get a double report confirmation, confirming this report and the next one, which would make us loose the next one if its transport failes. Low probability in practice.

0 commit comments

Comments
 (0)