Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init failureDetected #1016

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading