We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2872394 commit 4fd0ce3Copy full SHA for 4fd0ce3
lib/subghz/protocols/keeloq.c
@@ -255,7 +255,7 @@ static bool subghz_protocol_keeloq_gen_data(
255
// Centurion -> no serial in hop, uses fixed value 0x1CE - normal learning
256
} else if(strcmp(instance->manufacture_name, "Dea_Mio") == 0) {
257
uint8_t first_disc_num = (instance->generic.serial >> 8) & 0xF;
258
- uint8_t result_disc = (0xC + ((first_disc_num % 4) ? 2 : 0));
+ uint8_t result_disc = (0xC + (first_disc_num % 4));
259
uint32_t dea_serial = (instance->generic.serial & 0xFF) |
260
(((uint32_t)result_disc) << 8);
261
decrypt = btn << 28 | (dea_serial & 0xFFF) << 16 | instance->generic.cnt;
0 commit comments