Enabled warnings, and cleaned up warnings. Updated pingpair makefile for recent makefile improvements
This commit is contained in:
@@ -140,8 +140,8 @@ CXXINCS = -I$(ARDUINO_CORE) -I$(ARDUINO_LIB)
|
||||
#CSTANDARD = -std=gnu99
|
||||
CDEBUG = -g$(DEBUG)
|
||||
#CWARN = -Wall -Wstrict-prototypes
|
||||
#CWARN = -Wall # show all warnings
|
||||
CWARN = -w # suppress all warnings
|
||||
CWARN = -Wall # show all warnings
|
||||
#CWARN = -w # suppress all warnings
|
||||
CMAP = -Wl,-Map,output.map
|
||||
####CTUNING = -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
|
||||
CTUNING = -ffunction-sections -fdata-sections
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
int serial_putc( char c, FILE *t )
|
||||
{
|
||||
Serial.write( c );
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
void printf_begin(void)
|
||||
|
||||
@@ -201,7 +201,7 @@ void loop(void)
|
||||
// Take the time, and send it. This will block until complete
|
||||
unsigned long time = millis();
|
||||
printf("Now sending %lu...",time);
|
||||
bool ok = radio.write( &time, sizeof(unsigned long) );
|
||||
radio.write( &time, sizeof(unsigned long) );
|
||||
|
||||
// Now, continue listening
|
||||
radio.startListening();
|
||||
|
||||
Reference in New Issue
Block a user