Merge pull request #24 from howard0su/experimental

Mark ssb and dsp cap const when non-QCX
pull/29/head
threeme3 2020-10-09 00:08:15 +02:00 zatwierdzone przez GitHub
commit d057622b55
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -2457,8 +2457,14 @@ int analogSafeRead(uint8_t pin)
}
enum dsp_cap_t { ANALOG, DSP, SDR };
#ifdef QCX
uint8_t dsp_cap = 0;
uint8_t ssb_cap = 0;
#else
// force SSB and SDR capability
const uint8_t ssb_cap = 1;
const uint8_t dsp_cap = 2;
#endif
uint16_t analogSampleMic()
{
@ -3250,8 +3256,6 @@ void setup()
//ssb_cap = 1; dsp_cap = 0; // force SSB and standard QCX-RX capability
//ssb_cap = 1; dsp_cap = 1; // force SSB and DSP capability
//ssb_cap = 1; dsp_cap = 2; // force SSB and SDR capability
#else
ssb_cap = 1; dsp_cap = 2; // force SSB and SDR capability
#endif //QCX
show_banner();