Skip to content

Commit

Permalink
fix: initialisation order
Browse files Browse the repository at this point in the history
  • Loading branch information
gagarinlg committed May 18, 2024
1 parent 075e4ed commit 1afc883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radio/src/targets/common/arm/stm32/pwr_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ void pwrInit()
#endif

// External module power
#if defined(HARDWARE_EXTERNAL_MODULE)
EXTERNAL_MODULE_PWR_OFF();
#if defined(HARDWARE_EXTERNAL_MODULE)
gpio_init(EXTMODULE_PWR_GPIO, GPIO_OUT, GPIO_PIN_SPEED_LOW);
EXTERNAL_MODULE_PWR_OFF();
#endif

// PWR switch
Expand Down

0 comments on commit 1afc883

Please sign in to comment.