Fix for sommer? [ci skip]

This commit is contained in:
MX
2026-01-15 03:22:32 +03:00
parent 161db6ebc6
commit 6265dad0b7
4 changed files with 9 additions and 5 deletions

View File

@@ -526,6 +526,11 @@ static bool
klq_last_custom_btn = 0xD;
}
uint32_t gap_duration = subghz_protocol_keeloq_const.te_short * 40;
if((strcmp(instance->manufacture_name, "Sommer") == 0)) {
gap_duration = subghz_protocol_keeloq_const.te_short * 29;
}
btn = subghz_protocol_keeloq_get_btn_code(klq_last_custom_btn);
// Generate new key
@@ -580,8 +585,7 @@ static bool
// send end
instance->encoder.upload[index++] =
level_duration_make(true, (uint32_t)subghz_protocol_keeloq_const.te_short);
instance->encoder.upload[index++] =
level_duration_make(false, (uint32_t)subghz_protocol_keeloq_const.te_short * 40);
instance->encoder.upload[index++] = level_duration_make(false, gap_duration);
return true;
}