From 47eca07e2ddcb842e13c593de3e162a0297df378 Mon Sep 17 00:00:00 2001 From: Denis Bodor Date: Thu, 20 Jul 2017 13:00:37 +0200 Subject: [PATCH] changes after pull request --- src/devices/cardin.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/devices/cardin.c b/src/devices/cardin.c index 6fb9fdf9..5a466795 100644 --- a/src/devices/cardin.c +++ b/src/devices/cardin.c @@ -1,5 +1,4 @@ #include "rtl_433.h" -#include "pulse_demod.h" #include "util.h" /* @@ -22,8 +21,6 @@ static int cardin_callback(bitbuffer_t *bitbuffer) { data_t *data; char time_str[LOCAL_TIME_BUFLEN]; - local_time_str(0, time_str); - // validate message as we can if((bb[0][2] & 48) == 0 && bitbuffer->bits_per_row[0] == 24 && ( (bb[0][2] & 3) == 3 || @@ -120,6 +117,7 @@ static int cardin_callback(bitbuffer_t *bitbuffer) { strcpy(rbuttonJ1, "--o"); } + local_time_str(0, time_str); data = data_make( "time", "", DATA_STRING, time_str, "model", "", DATA_STRING, "Cardin S466",