Skip to content

Commit

Permalink
init failureDetected
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jan 8, 2025
1 parent 80e7f13 commit 113ce00
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions RF24.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,15 +562,37 @@ uint8_t RF24::sprintf_address_register(char* out_buffer, uint8_t reg, uint8_t qt
/****************************************************************************/

RF24::RF24(rf24_gpio_pin_t _cepin, rf24_gpio_pin_t _cspin, uint32_t _spi_speed)
: ce_pin(_cepin), csn_pin(_cspin), spi_speed(_spi_speed), payload_size(32), _is_p_variant(false), _is_p0_rx(false), addr_width(5), dynamic_payloads_enabled(true), csDelay(5)
: ce_pin(_cepin),
csn_pin(_cspin),
spi_speed(_spi_speed),
payload_size(32),
_is_p_variant(false),
_is_p0_rx(false),
addr_width(5),
dynamic_payloads_enabled(true),
#if defined FAILURE_HANDLING
failureDetected(0),
#endif
csDelay(5)
{
_init_obj();
}

/****************************************************************************/

RF24::RF24(uint32_t _spi_speed)
: ce_pin(RF24_PIN_INVALID), csn_pin(RF24_PIN_INVALID), spi_speed(_spi_speed), payload_size(32), _is_p_variant(false), _is_p0_rx(false), addr_width(5), dynamic_payloads_enabled(true), csDelay(5)
: ce_pin(RF24_PIN_INVALID),
csn_pin(RF24_PIN_INVALID),
spi_speed(_spi_speed),
payload_size(32),
_is_p_variant(false),
_is_p0_rx(false),
addr_width(5),
dynamic_payloads_enabled(true),
#if defined FAILURE_HANDLING
failureDetected(0),
#endif
csDelay(5)
{
_init_obj();
}
Expand Down

0 comments on commit 113ce00

Please sign in to comment.