mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 20:49:49 +04:00
decoders reset step at reset func
This commit is contained in:
@@ -265,6 +265,7 @@ void subghz_protocol_decoder_marantec_free(void* context) {
|
|||||||
void subghz_protocol_decoder_marantec_reset(void* context) {
|
void subghz_protocol_decoder_marantec_reset(void* context) {
|
||||||
furi_assert(context);
|
furi_assert(context);
|
||||||
SubGhzProtocolDecoderMarantec* instance = context;
|
SubGhzProtocolDecoderMarantec* instance = context;
|
||||||
|
instance->decoder.parser_step = MarantecDecoderStepReset;
|
||||||
manchester_advance(
|
manchester_advance(
|
||||||
instance->manchester_saved_state,
|
instance->manchester_saved_state,
|
||||||
ManchesterEventReset,
|
ManchesterEventReset,
|
||||||
|
|||||||
@@ -227,6 +227,8 @@ void subghz_protocol_decoder_revers_rb2_free(void* context) {
|
|||||||
void subghz_protocol_decoder_revers_rb2_reset(void* context) {
|
void subghz_protocol_decoder_revers_rb2_reset(void* context) {
|
||||||
furi_assert(context);
|
furi_assert(context);
|
||||||
SubGhzProtocolDecoderRevers_RB2* instance = context;
|
SubGhzProtocolDecoderRevers_RB2* instance = context;
|
||||||
|
instance->decoder.parser_step = Revers_RB2DecoderStepReset;
|
||||||
|
instance->header_count = 0;
|
||||||
manchester_advance(
|
manchester_advance(
|
||||||
instance->manchester_saved_state,
|
instance->manchester_saved_state,
|
||||||
ManchesterEventReset,
|
ManchesterEventReset,
|
||||||
|
|||||||
Reference in New Issue
Block a user