From: Michael Gernoth Date: Thu, 20 Jun 2013 10:15:37 +0000 (+0200) Subject: always send a short (10ms) preamble, fixes more lost-packet problems X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/fhem-stuff/commitdiff_plain/5f2228fc4b667c70854f437b23ec6d168c647ed2 always send a short (10ms) preamble, fixes more lost-packet problems --- diff --git a/culfw/culfw-asksin-fix.diff b/culfw/culfw-asksin-fix.diff index e63b87f..c2d7101 100644 --- a/culfw/culfw-asksin-fix.diff +++ b/culfw/culfw-asksin-fix.diff @@ -128,7 +128,7 @@ Index: clib/rf_asksin.c enc[0] = dec[0]; enc[1] = (~dec[1]) ^ 0x89; -@@ -195,6 +171,13 @@ +@@ -195,6 +171,15 @@ enc[l] = dec[l] ^ dec[2]; @@ -137,12 +137,14 @@ Index: clib/rf_asksin.c + // According to ELV, devices get activated every 300ms, so send burst for 360ms + for(l = 0; l < 3; l++) + my_delay_ms(120); // arg is uint_8, so loop ++ } else { ++ my_delay_ms(10); + } + // send CC1100_ASSERT; cc1100_sendbyte(CC1100_WRITE_BURST | CC1100_TXFIFO); -@@ -205,12 +188,10 @@ +@@ -205,12 +190,10 @@ CC1100_DEASSERT;