mirror of
https://github.com/greatscottgadgets/ubertooth.git
synced 2026-10-12 02:15:11 +00:00
reduced RSSI wait time, applied fix to led_specan()
This commit is contained in:
@@ -1522,7 +1522,7 @@ void specan()
|
||||
while (!(cc2400_status() & FS_LOCK));
|
||||
cc2400_strobe(SRX);
|
||||
|
||||
volatile u32 j = 1000; while (--j); //FIXME crude delay
|
||||
volatile u32 j = 500; while (--j); //FIXME crude delay
|
||||
buf[3 * i] = (f >> 8) & 0xFF;
|
||||
buf[(3 * i) + 1] = f & 0xFF;
|
||||
buf[(3 * i) + 2] = cc2400_get(RSSI) >> 8;
|
||||
@@ -1572,6 +1572,7 @@ void led_specan()
|
||||
while (!(cc2400_status() & FS_LOCK));
|
||||
cc2400_strobe(SRX);
|
||||
|
||||
volatile u32 j = 500; while (--j); //FIXME crude delay
|
||||
lvl = cc2400_get(RSSI) >> 8;
|
||||
if (lvl > rssi_threshold) {
|
||||
switch (i) {
|
||||
|
||||
Reference in New Issue
Block a user