mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-07 19:01:54 -07:00
trythis
This commit is contained in:
@@ -53,7 +53,7 @@ bool subghz_scene_set_seed_on_event(void* context, SceneManagerEvent event) {
|
||||
"FAAC_SLH",
|
||||
868350000,
|
||||
FuriHalSubGhzPresetOok650Async);
|
||||
flipper_format_write_uint32(subghz->txrx->fff_data, "SEED", (uint32_t*)&seed, 4);
|
||||
flipper_format_write_uint32(subghz->txrx->fff_data, "SEED", (uint32_t*)seed, 1);
|
||||
FURI_LOG_I(TAG, "SEED (set_seed_on_event): %8X\n", seed);
|
||||
generated_protocol = true;
|
||||
} else {
|
||||
|
||||
@@ -247,11 +247,6 @@ bool subghz_protocol_encoder_faac_slh_deserialize(void* context, FlipperFormat*
|
||||
flipper_format_read_uint32(
|
||||
flipper_format, "Repeat", (uint32_t*)&instance->encoder.repeat, 1);
|
||||
|
||||
if(!flipper_format_read_uint32(flipper_format, "SEED", (uint32_t*)&instance->generic.seed, 4)) {
|
||||
FURI_LOG_E(TAG, "Missing SEED");
|
||||
break;
|
||||
}
|
||||
|
||||
subghz_protocol_encoder_faac_slh_get_upload(instance);
|
||||
|
||||
if(!flipper_format_rewind(flipper_format)) {
|
||||
@@ -464,14 +459,6 @@ bool subghz_protocol_decoder_faac_slh_deserialize(void* context, FlipperFormat*
|
||||
FURI_LOG_E(TAG, "Deserialize error");
|
||||
break;
|
||||
}
|
||||
if(!flipper_format_rewind(flipper_format)) {
|
||||
FURI_LOG_E(TAG, "Rewind error");
|
||||
break;
|
||||
}
|
||||
if(!flipper_format_read_uint32(flipper_format, "SEED", (uint32_t*)&instance->generic.seed, 4)) {
|
||||
FURI_LOG_E(TAG, "Missing SEED");
|
||||
break;
|
||||
}
|
||||
res = true;
|
||||
} while(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user