Skip to content

Commit c897609

Browse files
Fix NB4P bootloader
1 parent e8c9570 commit c897609

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

radio/src/boards/generic_stm32/analog_inputs.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040

4141
// generated files
4242
#include "stm32_adc_inputs.inc"
43-
#include "stm32_pwm_inputs.inc"
4443
#if !defined(BOOT)
4544
#include "hal_adc_inputs.inc"
4645
#endif
@@ -101,8 +100,10 @@ const etx_hal_adc_driver_t _adc_driver = {
101100
.get_input_mask = stm32_hal_get_inputs_mask,
102101
};
103102

103+
#if !defined(BOOT)
104104
#if defined(PWM_STICKS)
105105
#include "stm32_gpio.h"
106+
#include "stm32_pwm_inputs.inc"
106107

107108
static const stick_pwm_timer_t _sticks_timer = {
108109
.GPIOx = PWM_GPIO,
@@ -151,3 +152,4 @@ void gimbalsDetect()
151152
detected = gimbal_drivers[idx++]();
152153
}
153154
}
155+
#endif // !BOOT

0 commit comments

Comments
 (0)