]> git.zerfleddert.de Git - fhem-stuff/commitdiff
always send a short (10ms) preamble, fixes more lost-packet problems
authorMichael Gernoth <michael@gernoth.net>
Thu, 20 Jun 2013 10:15:37 +0000 (12:15 +0200)
committerMichael Gernoth <michael@gernoth.net>
Thu, 20 Jun 2013 10:15:37 +0000 (12:15 +0200)
culfw/culfw-asksin-fix.diff

index e63b87faecb9d1d985a44b78b8937115d7318d3e..c2d7101d3273f3f4b17c82db40fd8cb530ad3b17 100644 (file)
@@ -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;
  
Impressum, Datenschutz