mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-19 19:31:50 +03:00
Fix steps for PRECISE. Give ULTRANARROW #.# labels
This commit is contained in:
parent
8dc6a3c113
commit
27dc328614
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user