[FL-1250, FL-1252, FL-1323, FL-1324] New IRDA Application (part 1) (#497)
* Add new IrdaApp (half ready), add ButtonMenu * Fix NEC's extension * clang-format * Fix leak * Add submenu optional header * IRDA: add Edit button * clang-format * IrdaApp: Fix scene flow * Add IRDA NEC extended protocol * IRDA: Add address/command length Co-authored-by: SG <who.just.the.doctor@gmail.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include "irda_common_decoder_i.h"
|
||||
#include <stdbool.h>
|
||||
#include <furi.h>
|
||||
#include "irda_i.h"
|
||||
@@ -164,3 +165,12 @@ void irda_common_decoder_free(void* decoder) {
|
||||
free(decoder);
|
||||
}
|
||||
|
||||
void irda_common_decoder_reset(void* decoder) {
|
||||
furi_assert(decoder);
|
||||
IrdaCommonDecoder* common_decoder = decoder;
|
||||
|
||||
common_decoder->state = IrdaCommonStateWaitPreamble;
|
||||
common_decoder->timings_cnt = 0;
|
||||
common_decoder->databit_cnt = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user