From 66df0d7378cf93880d2345eb98e12d7ed563df77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 3 Sep 2016 13:48:56 +0200 Subject: [PATCH] log scale value --- User/user_main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/User/user_main.c b/User/user_main.c index 1f1677c..2205693 100644 --- a/User/user_main.c +++ b/User/user_main.c @@ -35,7 +35,7 @@ static DotMatrix_Cfg *disp; static volatile bool capture_pending = false; -static float waveform_scale = 1; +static float waveform_scale = 3; static void display_wave(); static void display_fft(); @@ -234,8 +234,6 @@ void user_main() { banner("== USER CODE STARTING =="); - info("Hello world"); - user_init(); ms_time_t counter1 = 0; @@ -254,9 +252,13 @@ void user_main() if (down_pressed) { if (waveform_scale > 0.1) { - waveform_scale -= 0.05; + waveform_scale -= 0.1; } } + + if (up_pressed || down_pressed) { + dbg("scale = %.1f", waveform_scale); + } } if (!capture_pending) {