mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-18 00:33:09 +00:00
Update faac_slh.c
Fix faac slh encoder, testing new seed value
This commit is contained in:
parent
d86d7d4b53
commit
2e61b38c6f
1 changed files with 6 additions and 8 deletions
|
@ -116,7 +116,7 @@ static bool subghz_protocol_faac_slh_gen_data(SubGhzProtocolEncoderFaacSLH* inst
|
||||||
uint32_t hop = 0;
|
uint32_t hop = 0;
|
||||||
uint32_t decrypt = 0;
|
uint32_t decrypt = 0;
|
||||||
uint64_t man = 0;
|
uint64_t man = 0;
|
||||||
instance->generic.seed = 0x77ED7698;
|
instance->generic.seed = 0x7C81AD20;
|
||||||
int res = 0;
|
int res = 0;
|
||||||
char fixx[8] = {};
|
char fixx[8] = {};
|
||||||
int shiftby = 32;
|
int shiftby = 32;
|
||||||
|
@ -179,12 +179,10 @@ static bool
|
||||||
}
|
}
|
||||||
|
|
||||||
//Send header
|
//Send header
|
||||||
for(uint8_t i = 11; i > 0; i--) {
|
|
||||||
instance->encoder.upload[index++] =
|
instance->encoder.upload[index++] =
|
||||||
level_duration_make(true, (uint32_t)subghz_protocol_faac_slh_const.te_long * 2);
|
level_duration_make(true, (uint32_t)subghz_protocol_faac_slh_const.te_long * 2);
|
||||||
instance->encoder.upload[index++] =
|
instance->encoder.upload[index++] =
|
||||||
level_duration_make(false, (uint32_t)subghz_protocol_faac_slh_const.te_short * 2);
|
level_duration_make(false, (uint32_t)subghz_protocol_faac_slh_const.te_long * 2);
|
||||||
}
|
|
||||||
|
|
||||||
//Send key data
|
//Send key data
|
||||||
for(uint8_t i = instance->generic.data_count_bit; i > 0; i--) {
|
for(uint8_t i = instance->generic.data_count_bit; i > 0; i--) {
|
||||||
|
@ -380,7 +378,7 @@ static void subghz_protocol_faac_slh_check_remote_controller
|
||||||
instance->btn = code_fix & 0xF;
|
instance->btn = code_fix & 0xF;
|
||||||
uint32_t decrypt = 0;
|
uint32_t decrypt = 0;
|
||||||
uint64_t man;
|
uint64_t man;
|
||||||
instance->seed = 0x77ED7698;
|
instance->seed = 0x7C81AD20;
|
||||||
|
|
||||||
for
|
for
|
||||||
M_EACH(manufacture_code, *subghz_keystore_get_data(keystore), SubGhzKeyArray_t) {
|
M_EACH(manufacture_code, *subghz_keystore_get_data(keystore), SubGhzKeyArray_t) {
|
||||||
|
|
Loading…
Reference in a new issue