Skip to content

Commit 08bad1b

Browse files
author
Jon Krause
committed
expose g_cfg and add ook toggle
1 parent 0b5a811 commit 08bad1b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/signalDecoder.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,13 @@ class rtl_433_Decoder {
8787
/// @param p Pointer to RFraw null-term string data
8888
/// @param ctx Optional context pointer for callback
8989
void processRFRaw(char const *p,void* ctx=nullptr);
90-
90+
/// @brief set modululation to ook
91+
/// @param ook true=ook, false=fsk
92+
void setook(bool ook) { _ookModulation=ook; }
9193
unsigned int unparsedSignals = 0;
9294

95+
r_cfg_t g_cfg; // Global config object
96+
9397
protected:
9498
static void rtl_433_DecoderTask(void* pvParameters);
9599

@@ -98,7 +102,6 @@ class rtl_433_Decoder {
98102

99103
int rtlVerbose = 0;
100104

101-
r_cfg_t g_cfg; // Global config object
102105
TaskHandle_t rtl_433_DecoderHandle;
103106
QueueHandle_t rtl_433_Queue;
104107
};

0 commit comments

Comments
 (0)