Skip to content

Commit

Permalink
signalDecoder.cpp - bei getSync() das syncLenMax
Browse files Browse the repository at this point in the history
von 100 auf 120 erhöht. Dies ist zum Empfangen von Homeeasy HE_EU notwendig
RFD-FHEM#67 (comment)

Beim if   histo[p] => 1 durch histo[p] = 1 ersetzt
  • Loading branch information
Ralf9 committed Apr 14, 2018
1 parent c98170c commit 696c85e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/_micro-api/libraries/signalDecoder/src/signalDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ bool SignalDetectorClass::getSync()
if (state == clockfound) // we need a clock to find this type of sync
{ // clock wurde bereits durch getclock bestimmt

uint8_t syncLenMax = 100; // wenn in den ersten ca 100 Pulsen kein Sync gefunden wird, dann ist es kein MS Signal
uint8_t syncLenMax = 120; // wenn in den ersten ca 120 Pulsen kein Sync gefunden wird, dann ist es kein MS Signal

if (syncLenMax > messageLen - minMessageLen) // der Abstand vom sync zum Ende sollte mindestens minMessageLen sein
{
Expand Down Expand Up @@ -1261,12 +1261,12 @@ bool SignalDetectorClass::getSync()
(syncabs > syncMinFact*pattern[clock]) &&
// (syncabs < maxPulse) &&
// (validSequence(&pattern[clock],&pattern[p])) &&
(histo[p] < messageLen*0.08) && (histo[p] >= 1)
//(histo[p] < 8) && (histo[p] > 1)

//(syncMinFact*pattern[clock] <= syncabs)
(histo[p] < messageLen*0.08) && (histo[p] > 1) // histo[p] => 1)
)
{
// if (histo[p] == 1 && messageLen == maxMsgSize) // ist evtl notwendig, wenn histo[p] => 1
// continue;

//if ((syncMinFact* (pattern[clock]) <= -1*pattern[p])) {//n>9 => langer Syncpulse (als 10*int16 darstellbar
// Pruefe ob Sync und Clock valide sein koennen
// if (histo[p] > 6) continue; // Maximal 6 Sync Pulse Todo: 6 Durch Formel relativ zu messageLen ersetzen
Expand Down

0 comments on commit 696c85e

Please sign in to comment.