mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Disable -flto optimiser option for F3, F4 and F7
This commit is contained in:
parent
da2deeb39c
commit
7b8ebfc8f9
4 changed files with 7 additions and 3 deletions
4
Makefile
4
Makefile
|
@ -734,7 +734,11 @@ OPTIMIZE = -O0
|
|||
LTO_FLAGS = $(OPTIMIZE)
|
||||
else
|
||||
OPTIMIZE = -Os
|
||||
ifeq ($(TARGET),$(filter $(TARGET),$(F1_TARGETS)))
|
||||
LTO_FLAGS = -flto -fuse-linker-plugin $(OPTIMIZE)
|
||||
else
|
||||
LTO_FLAGS = -fuse-linker-plugin $(OPTIMIZE)
|
||||
endif
|
||||
endif
|
||||
|
||||
DEBUG_FLAGS = -ggdb3 -DDEBUG
|
||||
|
|
|
@ -75,7 +75,7 @@ void biquadFilterInit(biquadFilter_t *filter, float filterFreq, uint32_t refresh
|
|||
const float cs = cosf(omega);
|
||||
const float alpha = sn / (2 * Q);
|
||||
|
||||
float b0, b1, b2, a0, a1, a2;
|
||||
float b0 = 0, b1 = 0, b2 = 0, a0 = 0, a1 = 0, a2 = 0;
|
||||
|
||||
switch (filterType) {
|
||||
case FILTER_LPF:
|
||||
|
|
|
@ -156,7 +156,7 @@ void pwmCompleteMotorUpdate(uint8_t motorCount)
|
|||
|
||||
void motorInit(const motorConfig_t *motorConfig, uint16_t idlePulse, uint8_t motorCount)
|
||||
{
|
||||
uint32_t timerMhzCounter;
|
||||
uint32_t timerMhzCounter = 0;
|
||||
pwmWriteFuncPtr pwmWritePtr;
|
||||
bool useUnsyncedPwm = motorConfig->useUnsyncedPwm;
|
||||
bool isDigital = false;
|
||||
|
|
|
@ -620,7 +620,7 @@ void handleSmartPortTelemetry(void)
|
|||
smartPortIdCnt++;
|
||||
|
||||
int32_t tmpi;
|
||||
uint32_t tmp2;
|
||||
uint32_t tmp2 = 0;
|
||||
static uint8_t t1Cnt = 0;
|
||||
static uint8_t t2Cnt = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue