Update faac_slh.c

This commit is contained in:
r3df0xx 2022-04-24 22:50:48 +03:00
parent 74db3d6bb6
commit 186b12580e

View file

@ -112,11 +112,10 @@ void subghz_protocol_encoder_faac_slh_free(void* context) {
static bool subghz_protocol_faac_slh_gen_data(SubGhzProtocolEncoderFaacSLH* instance) {
instance->generic.cnt++;
uint32_t fix = instance->generic.data >> 32;
uint32_t fix = instance->generic.serial << 4 | instance->generic.btn;
uint32_t hop = 0;
uint32_t decrypt = 0;
uint64_t man = 0;
instance->generic.seed = 0x77ED7698;
int res = 0;
char fixx[8] = {};
int shiftby = 32;
@ -404,8 +403,6 @@ static void subghz_protocol_faac_slh_check_remote_controller
instance->btn = code_fix & 0xF;
uint32_t decrypt = 0;
uint64_t man;
instance->seed = 0x77ED7698;
for
M_EACH(manufacture_code, *subghz_keystore_get_data(keystore), SubGhzKeyArray_t) {