Removed tinySA5 4 pole switches

pull/71/head
erikkaashoek 3 years ago
parent 8bfcfd77c8
commit c34e756bf0

@ -18,7 +18,7 @@
*/ */
#include "ch.h" #include "ch.h"
#ifdef TINYSA_F303 //#ifdef TINYSA_F303
#ifdef TINYSA_F072 #ifdef TINYSA_F072
#error "Remove comment for #ifdef TINYSA_F303" #error "Remove comment for #ifdef TINYSA_F303"
#endif #endif
@ -26,7 +26,7 @@
#define TINYSA4 #define TINYSA4
#endif #endif
#define TINYSA4_PROTO #define TINYSA4_PROTO
#endif //#endif
#ifdef TINYSA_F072 #ifdef TINYSA_F072
#ifdef TINYSA_F303 #ifdef TINYSA_F303

@ -360,10 +360,7 @@ void set_output_path(freq_t f, float level)
goto common; goto common;
case PATH_DIRECT: case PATH_DIRECT:
if (max2871) enable_ultra(true);
enable_ultra(false);
else
enable_ultra(true);
enable_direct(true); enable_direct(true);
enable_high(true); enable_high(true);
enable_ADF_output(false, false); enable_ADF_output(false, false);
@ -417,13 +414,8 @@ void set_input_path(freq_t f)
goto common; goto common;
case PATH_DIRECT: case PATH_DIRECT:
if (max2871) { enable_ultra(true);
enable_ultra(false); enable_direct(true);
enable_direct(true);
} else {
enable_ultra(true);
enable_direct(true);
}
enable_high(true); enable_high(true);
enable_extra_lna(setting.extra_lna); enable_extra_lna(setting.extra_lna);
if (setting.tracking_output) if (setting.tracking_output)
@ -436,13 +428,8 @@ void set_input_path(freq_t f)
case PATH_ULTRA: case PATH_ULTRA:
enable_ultra(true); enable_ultra(true);
enable_high(false); enable_high(false);
if (max2871) { enable_direct(false);
enable_direct(setting.extra_lna); // Acts as LNA switch in Ultra mode. enable_extra_lna(setting.extra_lna);
enable_extra_lna(false);
} else {
enable_direct(false);
enable_extra_lna(setting.extra_lna);
}
common: common:
enable_ADF_output(true, setting.tracking_output); enable_ADF_output(true, setting.tracking_output);
common2: common2:

@ -2659,8 +2659,6 @@ static int old_ultra = 2;
if (s != old_ultra) { if (s != old_ultra) {
old_ultra = s; old_ultra = s;
#ifdef TINYSA4 #ifdef TINYSA4
if (max2871)
s = !s;
if (s) if (s)
palClearLine(LINE_ULTRA); palClearLine(LINE_ULTRA);
else else
@ -2716,8 +2714,6 @@ void enable_direct(int s)
if (s == old_direct) if (s == old_direct)
return; return;
old_direct = s; old_direct = s;
if (max2871)
s = !s;
if (s) if (s)
SI4463_set_gpio(4,SI446X_GPIO_MODE_DRIVE0); SI4463_set_gpio(4,SI446X_GPIO_MODE_DRIVE0);
else else

Loading…
Cancel
Save

Powered by TurnKey Linux.