Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FA21RF smoke detector detection #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions RFLink/Plugins/Plugin_080.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#define FA20_PLUGIN_ID 080
#define PLUGIN_DESC_080 "FA20RF"

#define FA20_PULSECOUNT 52
#define FA20_PULSECOUNT 50

#define FA20_MIDHI 1000 / RAWSIGNAL_SAMPLE_RATE
#define FA20_PULSEMIN 1000 / RAWSIGNAL_SAMPLE_RATE
Expand All @@ -57,7 +57,7 @@ boolean Plugin_080(byte function, char *string)
//==================================================================================
// Get all 24 bits
//==================================================================================
for (byte x = 4; x < FA20_PULSECOUNT; x += 2)
for (byte x = 2; x < FA20_PULSECOUNT; x += 2)
{
if (RawSignal.Pulses[x - 1] > FA20_MIDHI)
return false; // every preceding pulse must be below 1000!
Expand Down