Skip to content

Commit 5e8f5b7

Browse files
committed
mmc: dead semaphore
1 parent 7ba1f7d commit 5e8f5b7

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

firmware/hw_layer/mmc_card.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,9 @@ static void removeFile(const char *pathx) {
351351
#if HAL_USE_USB_MSD
352352

353353
static volatile bool usbConnected = false;
354-
static chibios_rt::BinarySemaphore usbConnectedSemaphore(/* taken =*/ true);
355354

356355
void onUsbConnectedNotifyMmcI(bool connected) {
357356
usbConnected = connected;
358-
if (connected) {
359-
usbConnectedSemaphore.signalI();
360-
}
361357
}
362358

363359
#endif /* HAL_USE_USB_MSD */

0 commit comments

Comments
 (0)