Update faac_slh.c

This commit is contained in:
r3df0xx 2022-04-26 19:09:24 +03:00
parent a12770a026
commit 0e9334d8b0

View file

@ -247,7 +247,7 @@ 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)) {
if(!flipper_format_read_uint32(flipper_format, "SEED", (uint32_t*)&instance->generic.seed, 4)) {
FURI_LOG_E(TAG, "Missing SEED");
break;
}
@ -468,7 +468,7 @@ bool subghz_protocol_decoder_faac_slh_deserialize(void* context, FlipperFormat*
FURI_LOG_E(TAG, "Rewind error");
break;
}
if(!flipper_format_read_uint32(flipper_format, "SEED", (uint32_t*)instance->generic.seed, 4)) {
if(!flipper_format_read_uint32(flipper_format, "SEED", (uint32_t*)&instance->generic.seed, 4)) {
FURI_LOG_E(TAG, "Missing SEED");
break;
}