Skip to content

Commit 49f880e

Browse files
author
Yveaux
committed
Bugfix
1 parent 688261f commit 49f880e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/MySensors/utility/RF24.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,9 @@ static uint8_t get_child_pipe_mask(const uint8_t idx)
553553
_BV(ERX_P0), _BV(ERX_P1), _BV(ERX_P2), _BV(ERX_P3), _BV(ERX_P4), _BV(ERX_P5)
554554
};
555555
#ifdef ESP8266
556-
return child_pipe_enable[0];
556+
return child_pipe_enable[idx];
557557
#else
558-
return pgm_read_byte(&child_pipe_enable[0]);
558+
return pgm_read_byte(&child_pipe_enable[idx]);
559559
#endif
560560
}
561561

0 commit comments

Comments
 (0)