diff --git a/OneWireESP32.cpp b/OneWireESP32.cpp index 9f033d3..cd26d7a 100644 --- a/OneWireESP32.cpp +++ b/OneWireESP32.cpp @@ -21,6 +21,8 @@ #define OW_SLOT_RECOVERY 5 #define OW_TIMEOUT 50 +static IRAM_ATTR bool owrxdone(rmt_channel_handle_t ch, const rmt_rx_done_event_data_t *edata, void *udata); + static rmt_symbol_word_t ow_bit0 = { .duration0 = OW_SLOT_START + OW_SLOT_BIT, diff --git a/OneWireESP32.h b/OneWireESP32.h index 91cc46d..445fb59 100644 --- a/OneWireESP32.h +++ b/OneWireESP32.h @@ -18,8 +18,6 @@ #define MAX_BLOCKS 48 #endif -IRAM_ATTR bool owrxdone(rmt_channel_handle_t ch, const rmt_rx_done_event_data_t *edata, void *udata); - class OneWire32 { private: gpio_num_t owpin;