From c02f469380b07804175d639ab8beb80ca37acc13 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Sat, 23 May 2015 14:50:42 +0200 Subject: [PATCH] Timeout adjustments --- firmware/firmware.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/firmware.c b/firmware/firmware.c index c9c4317..fb095f5 100644 --- a/firmware/firmware.c +++ b/firmware/firmware.c @@ -5,8 +5,8 @@ #include "clock.h" #include "modbus.h" -#define ECHO_TIMEOUT (CLOCK_HZ/20) // 50 ms -#define MEASUREMENT_WAIT (4*ECHO_TIMEOUT) +#define ECHO_TIMEOUT (CLOCK_HZ/10) // 100 ms +#define MEASUREMENT_WAIT (2*ECHO_TIMEOUT) #define MEASUREMENT_SHIFT 2 // running avg (1 << M_SHIFT) #define N_TRIGGERS 3 -- 2.43.5