Fix steps for PRECISE. Give ULTRANARROW #.# labels

This commit is contained in:
ALEEF02 2023-07-21 15:06:36 -04:00
parent 8dc6a3c113
commit 27dc328614
No known key found for this signature in database
GPG Key ID: FEEB069D0B2BCC4F
2 changed files with 5 additions and 1 deletions

View File

@ -84,6 +84,7 @@ void spectrum_analyzer_draw_scale(Canvas* canvas, const SpectrumAnalyzerModel* m
canvas_set_font(canvas, FontSecondary);
switch(model->width) {
case PRECISE:
case ULTRANARROW:
snprintf(temp_str, 18, "%.1f", ((double)tag_left) / 1000);
canvas_draw_str_aligned(canvas, FREQ_START_X, 63, AlignCenter, AlignBottom, temp_str);
snprintf(temp_str, 18, "%.1f", ((double)tag_center) / 1000);
@ -461,6 +462,9 @@ int32_t spectrum_analyzer_app(void* p) {
case ULTRAWIDE:
hstep = ULTRAWIDE_STEP;
break;
case PRECISE:
hstep = PRECISE_STEP;
break;
default:
hstep = WIDE_STEP;
break;

View File

@ -15,7 +15,7 @@
* wide mode (default): 20 MHz on screen, 196 kHz per channel
* narrow mode: 4 MHz on screen, 39 kHz per channel
* ultranarrow mode: 2 MHz on screen, 19 kHz per channel
* pricse mode: 400 KHz on screen, 3.92 kHz per channel
* precise mode: 400 KHz on screen, 3.92 kHz per channel
*/
#define WIDE 0
#define NARROW 1