fix mfkey size

This commit is contained in:
r3df0xx 2022-04-09 15:15:36 +03:00
parent b3588e46c7
commit 85079f79c9
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ inline uint64_t
*/
inline uint64_t
subghz_protocol_keeloq_common_faac_learning(const uint32_t seed, const uint32_t key) {
subghz_protocol_keeloq_common_faac_learning(const uint32_t seed, const uint64_t key) {
uint16_t hs = seed >> 16;
const uint16_t ending = 0x544D;
uint32_t lsb = (uint32_t)hs << 16 | ending;

View file

@ -73,4 +73,4 @@ uint64_t subghz_protocol_keeloq_common_magic_xor_type1_learning(uint32_t data, u
* @param key - mfkey (64bit)
* @return man_learning for this fix number (64bit)
*/
uint64_t subghz_protocol_keeloq_common_faac_learning(const uint32_t seed, const uint32_t key);
uint64_t subghz_protocol_keeloq_common_faac_learning(const uint32_t seed, const uint64_t key);