Skip to content

Commit

Permalink
Fix DTM Neo encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Oct 13, 2022
1 parent c198a51 commit d547307
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/subghz/protocols/keeloq.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ static bool subghz_protocol_keeloq_gen_data(SubGhzProtocolEncoderKeeloq* instanc
instance->manufacture_name = "";
}

// DTM Neo uses 12bit, simple learning
if((strcmp(instance->manufacture_name, "DTM_Neo") == 0)) {
decrypt = btn << 28 | (instance->generic.serial & 0xFFF) << 16 | instance->generic.cnt;
}

// Nice Smilo, MHouse, JCM has 8bit serial - simple learning
if((strcmp(instance->manufacture_name, "NICE_Smilo") == 0) ||
(strcmp(instance->manufacture_name, "NICE_MHOUSE") == 0) ||
Expand Down

0 comments on commit d547307

Please sign in to comment.