diff --git a/main.c b/main.c index cacab00..a05ab64 100644 --- a/main.c +++ b/main.c @@ -2098,6 +2098,7 @@ int main(void) #ifdef TINYSA3 has_esd = ((palReadPort(GPIOB) & (1<<12)) ? false : true ); + #endif @@ -2161,6 +2162,10 @@ int main(void) #endif /* restore config */ +#ifdef TINYSA3 + if (has_esd) + config.switch_offset = -5.0; +#endif config_recall(); config.cor_am = 0; // Should be removed from config config.cor_nfm = 0; diff --git a/sa_core.c b/sa_core.c index c8e08fd..a24d8bf 100644 --- a/sa_core.c +++ b/sa_core.c @@ -3483,6 +3483,7 @@ again: // Spur redu // shell_printf("%d %.3f %.3f %.1f\r\n", i, local_IF/1000000.0, lf/1000000.0, subRSSI); // ************** trigger mode if need +#if 0 // trigger on measure 4 point #define T_POINTS 4 #define T_LEVEL_UNDEF (1<<(16-T_POINTS)) // should drop after 4 shifts left @@ -3492,6 +3493,17 @@ again: // Spur redu #define T_DOWN_MASK (0b0011) // 2 from up 2 to bottom #define T_UP_MASK (0b1100) // 2 from bottom 2 to up #define T_LEVEL_CLEAN ~(1<