Closed GoogleCodeExporter closed 9 years ago
The Print-class in 0019 was extened to work with WString-class instances.
Replacing
#include "WConstants.h" with #include "WProgram.h"
in NewSoftSerial.cpp fixes the compile error at least.
Original comment by e.fa...@wayoda.org
on 15 Aug 2010 at 5:07
r1073
We're now including stdlib.h in wiring.h so that the standard abs() comes
before our abs() #define, and therefore isn't broken by it. This seems to have
fixed NewSoftSerial, and should hopefully prevent other similar problems.
Original comment by dmel...@gmail.com
on 17 Aug 2010 at 9:54
Yes this will fix it, but I'm just curious to know:
Is there a reason NewSoftSerial favors to include "WConstants.h" instead of
"WProgram.h" (as suggested by the library tutorial
http://arduino.cc/en/Hacking/LibraryTutorial )??
Right at the start "WProgram.h" does what now "wiring.h" does again, and
codesize isn't affected either.
{{{
#ifndef WProgram_h
#define WProgram_h
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <avr/interrupt.h>
#include "wiring.h"
}}}
Eberhard
Original comment by e.fa...@wayoda.org
on 18 Aug 2010 at 8:10
I think there was an idea that WConstants.h would be a minimal header that
would just define the appropriate types and constants, whereas WProgram.h would
actually provide the core functions declarations. That way, if you only needed
the former, you wouldn't get the latter. I doubt it makes any difference
though.
Original comment by dmel...@gmail.com
on 18 Aug 2010 at 3:30
Original issue reported on code.google.com by
follower@gmail.com
on 15 Aug 2010 at 3:10