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

Add nice_flor_s support for Nice One remote #2960

Merged
merged 1 commit into from
Jun 8, 2024
Merged
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
5 changes: 4 additions & 1 deletion src/devices/nice_flor_s.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ A packet is made of 52 bits (13 nibbles S0 to S12):
- S1: retransmission count starting from 1, xored with ~S0
- S2 and S7-S12: 28 bit encrypted serial number
- S3-S6: 16 bits encrypted rolling code

Nice One remotes repeat the Nice Flor-s protocol with 20 additional bytes:
a packet is made of 72 bits
*/

#include "decoder.h"
Expand All @@ -30,7 +33,7 @@ static int nice_flor_s_decode(r_device *decoder, bitbuffer_t *bitbuffer)
if (bitbuffer->num_rows != 2 || bitbuffer->bits_per_row[1] != 0) {
return DECODE_ABORT_EARLY;
}
if (bitbuffer->bits_per_row[0] != 52) {
if (bitbuffer->bits_per_row[0] != 52 && bitbuffer->bits_per_row[0] != 72) {
return DECODE_ABORT_LENGTH;
}

Expand Down
Loading