log scale value

This commit is contained in:
2016-09-03 13:48:56 +02:00
parent b38fc87a8b
commit 66df0d7378
+6 -4
View File
@@ -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) {