diff --git a/src/imu.c b/src/imu.c index 9c7ce0316b..208a53359b 100644 --- a/src/imu.c +++ b/src/imu.c @@ -352,7 +352,7 @@ int getEstimatedAltitude(void) if (calibratingB > 0) { baroGroundPressure -= baroGroundPressure / 8; baroGroundPressure += baroPressureSum / (cfg.baro_tab_size - 1); - baroGroundAltitude = (1.0f - powf((baroGroundPressure / 8) / 101325.0f, 0.190295f)) * 4433000.0f; + baroGroundAltitude = (1.0f - powf((baroGroundPressure / 8) / 101325.0f, 0.190295f)) * 4433000.0f; vel = 0; accAlt = 0; diff --git a/src/mw.c b/src/mw.c index e668ee83df..2ed6f2768b 100755 --- a/src/mw.c +++ b/src/mw.c @@ -122,8 +122,8 @@ void annexCode(void) tmp2 = tmp / 100; rcCommand[axis] = lookupPitchRollRC[tmp2] + (tmp - tmp2 * 100) * (lookupPitchRollRC[tmp2 + 1] - lookupPitchRollRC[tmp2]) / 100; - prop1 = 100 - (uint16_t) cfg.rollPitchRate * tmp / 500; - prop1 = (uint16_t) prop1 *prop2 / 100; + prop1 = 100 - (uint16_t)cfg.rollPitchRate * tmp / 500; + prop1 = (uint16_t)prop1 * prop2 / 100; } else { // YAW if (cfg.yawdeadband) { if (tmp > cfg.yawdeadband) { diff --git a/src/spektrum.c b/src/spektrum.c index f5655dcefd..f99c109f8f 100644 --- a/src/spektrum.c +++ b/src/spektrum.c @@ -45,7 +45,7 @@ static void spektrumDataReceive(uint16_t c) { uint32_t spekTime; static uint32_t spekTimeLast, spekTimeInterval; - static uint8_t spekFramePosition; + static uint8_t spekFramePosition; spekDataIncoming = true; spekTime = micros(); diff --git a/stm32_flash.ld b/stm32_flash.ld index abd809b4cc..13bf7a0231 100644 --- a/stm32_flash.ld +++ b/stm32_flash.ld @@ -4,7 +4,7 @@ ** File : stm32_flash.ld ** ** Abstract : Linker script for STM32F103C8 Device with -** 64KByte FLASH, 20KByte RAM +** 128KByte FLASH, 20KByte RAM ** ***************************************************************************** */ @@ -13,7 +13,7 @@ ENTRY(Reset_Handler) /* Highest address of the user mode stack */ -_estack = 0x20005000; /* end of 10K RAM */ +_estack = 0x20005000; /* end of 20K RAM */ /* Generate a link error if heap and stack don't fit into RAM */ _Min_Heap_Size = 0; /* required amount of heap */