mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-22 05:14:46 -07:00
+
This commit is contained in:
@@ -53,6 +53,7 @@ bool subghz_scene_set_seed_on_event(void* context, SceneManagerEvent event) {
|
|||||||
"FAAC_SLH",
|
"FAAC_SLH",
|
||||||
868350000,
|
868350000,
|
||||||
FuriHalSubGhzPresetOok650Async);
|
FuriHalSubGhzPresetOok650Async);
|
||||||
|
flipper_format_update_uint32(subghz->txrx->fff_data, "SEED", (uint32_t*)&seed, 4);
|
||||||
FURI_LOG_I(TAG, "SEED (set_seed_on_event): %8X\n", seed);
|
FURI_LOG_I(TAG, "SEED (set_seed_on_event): %8X\n", seed);
|
||||||
generated_protocol = true;
|
generated_protocol = true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ bool subghz_protocol_encoder_faac_slh_deserialize(void* context, FlipperFormat*
|
|||||||
FURI_LOG_E(TAG, "Deserialize error");
|
FURI_LOG_E(TAG, "Deserialize error");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(!flipper_format_read_uint32(flipper_format, "SEED", (uint32_t*)&instance->generic.seed, 1)) {
|
if(!flipper_format_read_uint32(flipper_format, "SEED", (uint32_t*)&instance->generic.seed, 4)) {
|
||||||
FURI_LOG_E(TAG, "Missing SEED");
|
FURI_LOG_E(TAG, "Missing SEED");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -444,7 +444,7 @@ bool subghz_protocol_decoder_faac_slh_serialize(
|
|||||||
furi_assert(context);
|
furi_assert(context);
|
||||||
SubGhzProtocolDecoderFaacSLH* instance = context;
|
SubGhzProtocolDecoderFaacSLH* instance = context;
|
||||||
bool res = subghz_block_generic_serialize(&instance->generic, flipper_format, frequency, preset);
|
bool res = subghz_block_generic_serialize(&instance->generic, flipper_format, frequency, preset);
|
||||||
if(res && !flipper_format_write_uint32(flipper_format, "SEED", &instance->generic.seed, 1)) {
|
if(res && !flipper_format_write_uint32(flipper_format, "SEED", &instance->generic.seed, 4)) {
|
||||||
FURI_LOG_E(TAG, "Unable to add SEED");
|
FURI_LOG_E(TAG, "Unable to add SEED");
|
||||||
res = false;
|
res = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user