Browse Source

Fix new Latch pin init.

Vladimir N. Shilov 3 years ago
parent
commit
562a15ce83
1 changed files with 1 additions and 1 deletions
  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);