Skip to content

Commit

Permalink
Additions to last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
TMRh20 committed Jul 1, 2024
1 parent ef264b6 commit 52722dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RF24Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ typedef struct
* Data structure for holding per connection data
* @warning <b> This is used internally and should not be accessed directly by users </b>
*/
typedef __attribute__((__packed__)) struct
typedef struct __attribute__((__packed__))
{
bool hold;
bool packets_in;
Expand Down
5 changes: 3 additions & 2 deletions RF24Ethernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,14 +315,15 @@ void RF24EthernetClass::network_send()
{
RF24NetworkHeader headerOut(00, EXTERNAL_DATA_TYPE);

bool ok = RF24Ethernet.network.write(headerOut, uip_buf, uip_len);

#if defined ETH_DEBUG_L1 || defined ETH_DEBUG_L2
bool ok = RF24Ethernet.network.write(headerOut, uip_buf, uip_len);
if (!ok) {
Serial.println();
Serial.print(millis());
Serial.println(F(" *** RF24Ethernet Network Write Fail ***"));
}
#else
RF24Ethernet.network.write(headerOut, uip_buf, uip_len);
#endif

#if defined ETH_DEBUG_L2
Expand Down

0 comments on commit 52722dd

Please sign in to comment.