diff --git a/sa_core.c b/sa_core.c index 25be718..3e61097 100644 --- a/sa_core.c +++ b/sa_core.c @@ -2151,6 +2151,7 @@ void self_test(int test) // RBW step time search in_selftest = true; reset_settings(M_LOW); + setting.frequency_IF=433900000; ui_mode_normal(); int i = 15; // calibrate low mode power on 30 MHz; test_prepare(i); diff --git a/si4432.c b/si4432.c index 3671265..f58651d 100644 --- a/si4432.c +++ b/si4432.c @@ -442,7 +442,7 @@ float SI4432_RSSI(uint32_t i, int s) i = setting.repeat; RSSI_RAW = 0; while (i-->0) - RSSI_RAW += (unsigned int)SI4432_Read_Byte( 0x26 ) << 4 ; + RSSI_RAW += ((unsigned int)SI4432_Read_Byte( 0x26 )) << 4 ; RSSI_RAW = RSSI_RAW / setting.repeat; // if (MODE_INPUT(setting.mode) && RSSI_RAW == 0) // SI4432_Init();