Read also LNA when debugging AGC

pull/4/head
erikkaashoek 5 years ago
parent 3dee4731ee
commit 08f511183d

@ -1890,7 +1890,7 @@ sweep_again: // stay in sweep loop when output mo
RSSI = RSSI - stored_t[i] ; RSSI = RSSI - stored_t[i] ;
} }
#ifdef __DEBUG_AGC__ // For debugging the AGC control #ifdef __DEBUG_AGC__ // For debugging the AGC control
stored_t[i] = (SI4432_Read_Byte(0x69) & 0x0f) * 3.0 - 90.0; // Display the AGC value in the stored trace stored_t[i] = (SI4432_Read_Byte(0x69) & 0x01f) * 3.0 - 90.0; // Display the AGC value in the stored trace
#endif #endif
#ifdef __DEBUG_SPUR__ // For debugging the spur avoidance control #ifdef __DEBUG_SPUR__ // For debugging the spur avoidance control
stored_t[i] = (avoid_spur(frequencies[i]) ? -60.0 : - 90.0); // Display when to do spur shift in the stored trace stored_t[i] = (avoid_spur(frequencies[i]) ? -60.0 : - 90.0); // Display when to do spur shift in the stored trace

Loading…
Cancel
Save

Powered by TurnKey Linux.