mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 05:38:35 -07:00
new subghz fixes
This commit is contained in:
@@ -355,7 +355,7 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
|
|||||||
if(subghz_scene_set_type_submenu_gen_data_protocol(
|
if(subghz_scene_set_type_submenu_gen_data_protocol(
|
||||||
subghz,
|
subghz,
|
||||||
SUBGHZ_PROTOCOL_SECPLUS_V1_NAME,
|
SUBGHZ_PROTOCOL_SECPLUS_V1_NAME,
|
||||||
(uint64_t)key << 32 | 32,
|
(uint64_t)key << 32 | 0xE6000000,
|
||||||
42,
|
42,
|
||||||
315000000,
|
315000000,
|
||||||
FuriHalSubGhzPresetOok650Async)) {
|
FuriHalSubGhzPresetOok650Async)) {
|
||||||
@@ -370,7 +370,7 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
|
|||||||
if(subghz_scene_set_type_submenu_gen_data_protocol(
|
if(subghz_scene_set_type_submenu_gen_data_protocol(
|
||||||
subghz,
|
subghz,
|
||||||
SUBGHZ_PROTOCOL_SECPLUS_V1_NAME,
|
SUBGHZ_PROTOCOL_SECPLUS_V1_NAME,
|
||||||
(uint64_t)key << 32 | 32,
|
(uint64_t)key << 32 | 0xE6000000,
|
||||||
42,
|
42,
|
||||||
390000000,
|
390000000,
|
||||||
FuriHalSubGhzPresetOok650Async)) {
|
FuriHalSubGhzPresetOok650Async)) {
|
||||||
|
|||||||
@@ -225,8 +225,7 @@ static bool subghz_protocol_secplus_v1_encode(SubGhzProtocolEncoderSecPlus_v1* i
|
|||||||
instance->generic.data |= rolling;
|
instance->generic.data |= rolling;
|
||||||
|
|
||||||
if(rolling > 0xFFFFFFFF) {
|
if(rolling > 0xFFFFFFFF) {
|
||||||
FURI_LOG_E("TAG", "Encode counter overrun");
|
rolling = 0xE6000000;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
if(fixed > 0xCFD41B90) {
|
if(fixed > 0xCFD41B90) {
|
||||||
FURI_LOG_E("TAG", "Encode wrong fixed data");
|
FURI_LOG_E("TAG", "Encode wrong fixed data");
|
||||||
|
|||||||
Reference in New Issue
Block a user