Added repeats and 433.9MHz IF to selftest 3

tinySA-v0.2
erikkaashoek 6 years ago
parent 1d1ddee69d
commit 8043fe8fcf

@ -2151,6 +2151,7 @@ void self_test(int test)
// RBW step time search // RBW step time search
in_selftest = true; in_selftest = true;
reset_settings(M_LOW); reset_settings(M_LOW);
setting.frequency_IF=433900000;
ui_mode_normal(); ui_mode_normal();
int i = 15; // calibrate low mode power on 30 MHz; int i = 15; // calibrate low mode power on 30 MHz;
test_prepare(i); test_prepare(i);

@ -442,7 +442,7 @@ float SI4432_RSSI(uint32_t i, int s)
i = setting.repeat; i = setting.repeat;
RSSI_RAW = 0; RSSI_RAW = 0;
while (i-->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; RSSI_RAW = RSSI_RAW / setting.repeat;
// if (MODE_INPUT(setting.mode) && RSSI_RAW == 0) // if (MODE_INPUT(setting.mode) && RSSI_RAW == 0)
// SI4432_Init(); // SI4432_Init();

Loading…
Cancel
Save

Powered by TurnKey Linux.