소스 검색

Merge pull request #35 from xcvista/patch-1

Fixing a bug in `stm32f103_devfs`
Dmitry Filimonchuk 7 년 전
부모
커밋
17cd6c5a7e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/usbd_stm32f103_devfs.c

+ 1 - 1
src/usbd_stm32f103_devfs.c

@@ -111,7 +111,7 @@ inline static void set_gpiox() {
     if (USBD_DP_PORT == GPIOE) {RCC->APB2ENR |= RCC_APB2ENR_IOPEEN; return;}
     #endif
     #if defined(GPIOF)
-    if (USBD_DP_PORT = GPIOF) {RCC->APB2ENR |= RCC_APB2ENR_IOPFEN; return;}
+    if (USBD_DP_PORT == GPIOF) {RCC->APB2ENR |= RCC_APB2ENR_IOPFEN; return;}
     #endif
 #elif defined(STM32F3) && defined(USBD_DP_PORT)
     if (USBD_DP_PORT == GPIOA) {RCC->AHBENR |= RCC_AHBENR_GPIOAEN; return;}