diff --git a/RF24Client.h b/RF24Client.h index 595f41b..e00b3b9 100644 --- a/RF24Client.h +++ b/RF24Client.h @@ -50,7 +50,7 @@ typedef struct * Data structure for holding per connection data * @warning This is used internally and should not be accessed directly by users */ -typedef __attribute__((__packed__)) struct +typedef struct __attribute__((__packed__)) { bool hold; bool packets_in; diff --git a/RF24Ethernet.cpp b/RF24Ethernet.cpp index cafbb5b..e231644 100644 --- a/RF24Ethernet.cpp +++ b/RF24Ethernet.cpp @@ -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