Skip to content

Commit 3df48e5

Browse files
committed
Only define owrxdone method with IRAM_ATTR in one place
Moves definition to .cpp, as it does not need to be accessible outside this library.
1 parent c2aa014 commit 3df48e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

OneWireESP32.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#define OW_SLOT_RECOVERY 5
2222
#define OW_TIMEOUT 50
2323

24+
IRAM_ATTR bool owrxdone(rmt_channel_handle_t ch, const rmt_rx_done_event_data_t *edata, void *udata);
25+
2426

2527
static rmt_symbol_word_t ow_bit0 = {
2628
.duration0 = OW_SLOT_START + OW_SLOT_BIT,

OneWireESP32.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#define MAX_BLOCKS 48
1919
#endif
2020

21-
IRAM_ATTR bool owrxdone(rmt_channel_handle_t ch, const rmt_rx_done_event_data_t *edata, void *udata);
22-
2321
class OneWire32 {
2422
private:
2523
gpio_num_t owpin;

0 commit comments

Comments
 (0)