Skip to content

Commit

Permalink
Keeloq encoder: set default low battery to 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jan 22, 2023
1 parent 9f9115e commit d19ffe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/keeloq.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static bool decode(uint8_t *bits, uint32_t numbytes, uint32_t numbits, ProtoView
raw[7] = raw[7]<<4; // Make ID bits contiguous
fieldset_add_bytes(info->fieldset,"id",raw+4,7); // 28 bits, 7 nibbles
fieldset_add_bin(info->fieldset,"s2 s1 s0 s3",buttons,4);
fieldset_add_bin(info->fieldset,"low battery",lowbat,1);
fieldset_add_bin(info->fieldset,"low battery",lowbat,0);
fieldset_add_bin(info->fieldset,"always one",alwaysone,1);
return true;
}
Expand Down

0 comments on commit d19ffe6

Please sign in to comment.