소스 검색

Fix new Latch pin init.

Vladimir N. Shilov 4 년 전
부모
커밋
562a15ce83
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Src/main.c

+ 1 - 1
Src/main.c

@@ -922,7 +922,7 @@ static void MX_GPIO_Init(void)
   GPIO_InitStruct.Pin = Latch_Pin;
   GPIO_InitStruct.Mode = LL_GPIO_MODE_OUTPUT;
   GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_HIGH;
-  GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;
+  GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_OPENDRAIN;
   GPIO_InitStruct.Pull = LL_GPIO_PULL_NO;
   LL_GPIO_Init(Latch_GPIO_Port, &GPIO_InitStruct);