diff --git a/sa_cmd.c b/sa_cmd.c index 350e1ec..f9d9232 100644 --- a/sa_cmd.c +++ b/sa_cmd.c @@ -786,11 +786,12 @@ VNA_SHELL_FUNCTION(cmd_x) VFO = 1; else VFO = 0; - reg &= ~0xc00000; // Force led to show lock - reg |= 0x400000; + // reg &= ~0xc00000; // Force led to show lock + // reg |= 0x400000; } ADF4351_WriteRegister32(VFO, reg); + ADF4351_Latch(); shell_printf("x=%x\r\n", reg); } #endif diff --git a/sa_core.c b/sa_core.c index a28c771..3ed3d6d 100644 --- a/sa_core.c +++ b/sa_core.c @@ -970,11 +970,13 @@ void set_tracking_output(int t) dirty = true; } +#ifndef TINYSA4 void toggle_tracking_output(void) { setting.tracking_output = !setting.tracking_output; dirty = true; } +#endif void toggle_pulse(void) { diff --git a/si4432.h b/si4432.h index bcf4f4c..bfa9a74 100644 --- a/si4432.h +++ b/si4432.h @@ -159,6 +159,7 @@ void ADF4351_Setup(void); void ADF4351_WriteRegister32(int channel, const uint32_t value); +void ADF4351_Latch(void); uint64_t ADF4351_set_frequency(int channel, uint64_t freq); uint64_t ADF4351_prepare_frequency(int channel, uint64_t freq); //int ADF4351_set_frequency_with_offset(uint32_t freq, int offset, uint8_t drive_strength); diff --git a/ui.c b/ui.c index aa018a5..efa3b7c 100644 --- a/ui.c +++ b/ui.c @@ -3796,6 +3796,7 @@ static UI_FUNCTION_ADV_CALLBACK(menu_settings_ultra_acb){ } #endif +#ifndef TINYSA4 static UI_FUNCTION_ADV_CALLBACK(menu_lo_output_acb){ (void)item; (void)data; @@ -3805,6 +3806,7 @@ static UI_FUNCTION_ADV_CALLBACK(menu_lo_output_acb){ } toggle_tracking_output(); } +#endif static UI_FUNCTION_ADV_CALLBACK(menu_pause_acb) { @@ -4763,7 +4765,9 @@ static const menuitem_t menu_lock_display[] = { static const menuitem_t menu_config2[] = { { MT_ADV_CALLBACK, 0, "PULSE\nHIGH", menu_settings_pulse_acb}, +#ifndef TINYSA4 { MT_ADV_CALLBACK | MT_LOW, 0,"LO OUTPUT", menu_lo_output_acb}, +#endif #ifdef __ULTRA__ { MT_ADV_CALLBACK, 0, "ENABLE\nULTRA", menu_ultra_acb}, #endif