We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 082ca1f commit 638ae13Copy full SHA for 638ae13
src/low_power.c
@@ -278,6 +278,8 @@ void SystemClock_Decrease(void)
278
279
/** Configure the main internal regulator output voltage
280
*/
281
+
282
+#if (defined(STM32WBxx) && defined(PWR_CR1_VOS)) || !defined(STM32WBxx)
283
#if defined(STM32L4xx) || defined(STM32WBxx)
284
if (HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1) != HAL_OK)
285
#elif defined(STM32L5xx) || defined(STM32WLxx)
@@ -286,6 +288,7 @@ void SystemClock_Decrease(void)
286
288
{
287
289
Error_Handler();
290
}
291
+#endif
292
293
/** Initializes the RCC Oscillators according to the specified parameters
294
* in the RCC_OscInitTypeDef structure.
0 commit comments