Repaired waterfall

Removed_REF_marker
erikkaashoek 5 years ago
parent 3c95ed47f0
commit d359f83202

@ -73,7 +73,11 @@
* main.c * main.c
*/ */
#ifdef __SA__ #ifdef __SA__
#ifdef TINYSA4
#define POINTS_COUNT 450
#else
#define POINTS_COUNT 290 #define POINTS_COUNT 290
#endif
#define MARKER_COUNT 4 #define MARKER_COUNT 4
#define TRACES_MAX 3 #define TRACES_MAX 3

@ -2394,7 +2394,7 @@ redraw_frame(void)
static void update_waterfall(void){ static void update_waterfall(void){
int i; int i;
int w_width = area_width < POINTS_COUNT ? area_width : POINTS_COUNT; int w_width = area_width < WIDTH ? area_width : WIDTH;
// Waterfall only in 290 or 145 points // Waterfall only in 290 or 145 points
// if (!(sweep_points == 290 || sweep_points == 145)) // if (!(sweep_points == 290 || sweep_points == 145))
// return; // return;
@ -2447,7 +2447,7 @@ static void update_waterfall(void){
else color = RGB565( 0, 124-((y-160)*4), 252-((y-160)*4)); else color = RGB565( 0, 124-((y-160)*4), 252-((y-160)*4));
#endif #endif
while (j * sweep_points < (i+1) * 290) { // Scale waterfall to 290 points while (j * sweep_points < (i+1) * WIDTH) { // Scale waterfall to WIDTH points
spi_buffer[j++] = color; spi_buffer[j++] = color;
} }
} }

@ -758,10 +758,10 @@ static UI_FUNCTION_ADV_CALLBACK(menu_spur_acb)
if (b){ if (b){
if (setting.mode == M_LOW) { if (setting.mode == M_LOW) {
b->param_1.text = "SPUR\nREMOVAL"; b->param_1.text = "SPUR\nREMOVAL";
b->icon = setting.spur_removal == 0 ? BUTTON_ICON_NOCHECK : BUTTON_ICON_CHECK; b->icon = AUTO_ICON(setting.spur_removal);
} else { } else {
b->param_1.text = "MIRROR\nMASKING"; b->param_1.text = "MIRROR\nMASKING";
b->icon = setting.mirror_masking == 0 ? BUTTON_ICON_NOCHECK : BUTTON_ICON_CHECK; b->icon = AUTO_ICON(setting.mirror_masking);
} }
return; return;
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.