Fix MCO index check in HAL_RCC_MCOConfig

MCOConfig did not check the MCO index properly meaning that outputting MCO signal to either MCO2 or MCO3 would fail without the user knowing it
diff --git a/Src/stm32wbxx_hal_rcc.c b/Src/stm32wbxx_hal_rcc.c
index 8e42111..e03c5b8 100644
--- a/Src/stm32wbxx_hal_rcc.c
+++ b/Src/stm32wbxx_hal_rcc.c
@@ -1351,7 +1351,7 @@
     /* Mask MCOSEL[] and MCOPRE[] bits then set MCO clock source and prescaler */
     LL_RCC_ConfigMCO(RCC_MCOSource, RCC_MCODiv);
   }
-  else if (RCC_MCOx == RCC_MCO2_INDEX)
+  else if (mcoindex == RCC_MCO2_INDEX)
   {
     assert_param(IS_RCC_MCODIV(RCC_MCODiv));
     assert_param(IS_RCC_MCO2SOURCE(RCC_MCOSource));
@@ -1359,7 +1359,7 @@
     LL_RCC_ConfigMCO(RCC_MCOSource, RCC_MCODiv);
   }
 #if defined(RCC_MCO3_SUPPORT)
-  else if (RCC_MCOx == RCC_MCO3_INDEX)
+  else if (mcoindex == RCC_MCO3_INDEX)
   {
     assert_param(IS_RCC_MCODIV(RCC_MCODiv));
     assert_param(IS_RCC_MCO3SOURCE(RCC_MCOSource));