diff --git a/RF24Network.cpp b/RF24Network.cpp index 183e2336..4909b19b 100644 --- a/RF24Network.cpp +++ b/RF24Network.cpp @@ -110,7 +110,9 @@ bool RF24Network::enqueue(void) IF_SERIAL_DEBUG(printf_P(PSTR("ok\n\r"))); } else + { IF_SERIAL_DEBUG(printf_P(PSTR("failed\n\r"))); + } return result; } diff --git a/examples/sensornet/Jamfile b/examples/sensornet/Jamfile index d62f5191..41360036 100644 --- a/examples/sensornet/Jamfile +++ b/examples/sensornet/Jamfile @@ -40,7 +40,7 @@ AVRDUDE = $(AVR_TOOLS_PATH)/avrdude ; DEFINES = F_CPU=$(F_CPU)L ARDUINO=$(ARDUINO_VERSION) ; CTUNING = -ffunction-sections -fdata-sections ; CXXTUNING = -fno-exceptions ; -CFLAGS = -Os -Wall -Werror -mmcu=$(MCU) $(CTUNING) ; +CFLAGS = -Os -Werror -Wall -Wextra -mmcu=$(MCU) $(CTUNING) ; CXXFLAGS = $(CFLAGS) $(CXXTUNING) ; LDFLAGS = -Os -lm -Wl,--gc-sections -mmcu=atmega328p ; diff --git a/examples/sensornet/nodeconfig.cpp b/examples/sensornet/nodeconfig.cpp index 594ecd77..8a56b1d2 100644 --- a/examples/sensornet/nodeconfig.cpp +++ b/examples/sensornet/nodeconfig.cpp @@ -59,7 +59,7 @@ void nodeconfig_listen(void) // And we are done right now (no easy way to soft reset) printf_P(PSTR("\n\rManually reset address to: %c\n\rPress RESET to continue!"),c); - while(1); + while(1) ; } } } diff --git a/examples/sensornet/printf.h b/examples/sensornet/printf.h index 63501e46..df6c46ae 100644 --- a/examples/sensornet/printf.h +++ b/examples/sensornet/printf.h @@ -18,7 +18,7 @@ #include "WProgram.h" -int serial_putc( char c, FILE *t ) +int serial_putc( char c, FILE * ) { Serial.write( c );