Skip to content

Commit 24bd8ba

Browse files
committed
Small simplification
1 parent 1ac6935 commit 24bd8ba

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Diff for: system/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pcd.c

+1-8
Original file line numberDiff line numberDiff line change
@@ -1364,6 +1364,7 @@ static HAL_StatusTypeDef PCD_EP_ISR_Handler(PCD_HandleTypeDef *hpcd)
13641364
ep->pending1 = (uint16_t) (count == 0 ? PCD_PENDED_ZLP : count);
13651365
return HAL_OK;
13661366
}
1367+
ep->pending0 = 0;
13671368
}
13681369
else
13691370
{
@@ -1374,14 +1375,6 @@ static HAL_StatusTypeDef PCD_EP_ISR_Handler(PCD_HandleTypeDef *hpcd)
13741375
ep->pending0 = (uint16_t) (count == 0 ? PCD_PENDED_ZLP : count);
13751376
return HAL_OK;
13761377
}
1377-
}
1378-
1379-
if (PCD_OUT_SW(wEPVal))
1380-
{
1381-
ep->pending0 = 0;
1382-
}
1383-
else
1384-
{
13851378
ep->pending1 = 0;
13861379
}
13871380

0 commit comments

Comments
 (0)