diff --git a/Makefile b/Makefile index e16ea2e..341524d 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,8 @@ # Compiler options here. ifeq ($(USE_OPT),) -# USE_OPT = -O2 -fno-inline-small-functions -ggdb -fomit-frame-pointer -falign-functions=16 --specs=nano.specs -fstack-usage - USE_OPT = -fno-inline-small-functions -ggdb -fomit-frame-pointer -falign-functions=16 --specs=nano.specs -fstack-usage + USE_OPT = -O2 -fno-inline-small-functions -ggdb -fomit-frame-pointer -falign-functions=16 --specs=nano.specs -fstack-usage +# USE_OPT = -fno-inline-small-functions -ggdb -fomit-frame-pointer -falign-functions=16 --specs=nano.specs -fstack-usage endif # C specific options here (added to USE_OPT). diff --git a/sa_core.c b/sa_core.c index 2989f15..d2b6107 100644 --- a/sa_core.c +++ b/sa_core.c @@ -761,7 +761,7 @@ static bool sweep(bool break_on_operation) // back to toplevel to handle ui operation if (operation_requested && break_on_operation) return false; - if (MODE_OUTPUT(setting_mode)) { + if (MODE_OUTPUT(setting_mode) && setting_modulation == MO_NONE) { osalThreadSleepMilliseconds(10); } @@ -1495,7 +1495,7 @@ void calibrate(void) ili9341_drawstring_7x13("Calibration failed", 30, 120); goto quit; } else { - SetPowerLevel(-23); + SetPowerLevel(-22); // Should be -22.5dBm chThdSleepMilliseconds(1000); } } diff --git a/si4432.c b/si4432.c index 59a3818..021a3fc 100644 --- a/si4432.c +++ b/si4432.c @@ -412,25 +412,25 @@ void PE4302_shiftOut(uint8_t val) SPI2_SDI_HIGH; else SPI2_SDI_LOW; - chThdSleepMicroseconds(PE4302_DELAY); +// chThdSleepMicroseconds(PE4302_DELAY); SPI2_CLK_HIGH; - chThdSleepMicroseconds(PE4302_DELAY); +// chThdSleepMicroseconds(PE4302_DELAY); SPI2_CLK_LOW; - chThdSleepMicroseconds(PE4302_DELAY); +// chThdSleepMicroseconds(PE4302_DELAY); } } void PE4302_Write_Byte(unsigned char DATA ) { - chThdSleepMicroseconds(PE4302_DELAY); +// chThdSleepMicroseconds(PE4302_DELAY); SPI2_CLK_LOW; - chThdSleepMicroseconds(PE4302_DELAY); +// chThdSleepMicroseconds(PE4302_DELAY); PE4302_shiftOut(DATA); - chThdSleepMicroseconds(PE4302_DELAY); +// chThdSleepMicroseconds(PE4302_DELAY); CS_PE_HIGH; - chThdSleepMicroseconds(PE4302_DELAY); +// chThdSleepMicroseconds(PE4302_DELAY); CS_PE_LOW; - chThdSleepMicroseconds(PE4302_DELAY); +// chThdSleepMicroseconds(PE4302_DELAY); }