Commit 90d85bef authored by TMRh20's avatar TMRh20

Fix the rest of issue #101 per mz-fuzzy

Per https://github.com/TMRh20/RF24/issues/101#issuecomment-94163382
initialize pipe0_reading_address[0] to address "Weird and unstable
behavior of python wrapper" identified by @kormitigrov   Resolution/Root
Cause identified by mz-fuzzy
parent f691c45a
......@@ -413,6 +413,7 @@ RF24::RF24(uint8_t _cepin, uint8_t _cspin):
ce_pin(_cepin), csn_pin(_cspin), p_variant(false),
payload_size(32), dynamic_payloads_enabled(false), addr_width(5)//,pipe0_reading_address(0)
{
pipe0_reading_address[0]=0;
}
/****************************************************************************/
......@@ -420,7 +421,8 @@ RF24::RF24(uint8_t _cepin, uint8_t _cspin):
#if defined (RF24_LINUX) && !defined (MRAA)//RPi constructor
RF24::RF24(uint8_t _cepin, uint8_t _cspin, uint32_t _spi_speed):
ce_pin(_cepin),csn_pin(_cspin),spi_speed(_spi_speed),p_variant(false), payload_size(32), dynamic_payloads_enabled(false),addr_width(5)//,pipe0_reading_address(0)
{
{
pipe0_reading_address[0]=0;
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment