Closed
Description
When I include SoftwareSerial.h
, other libraries break because the abs(x)
macro stops working. One particular library that stops functioning properly is uStepper.
The reason for it seems to be a section at the bottom of SoftwareSerial.h
that undefines several macros:
// Arduino 0012 workaround
#undef int
#undef char
#undef long
#undef byte
#undef float
#undef abs
#undef round
I've commented this out in my project, and things are back to normal.
So I'm wondering, is this workaround still needed in the post-Arduino-0012 era?
Metadata
Metadata
Assignees
Labels
No labels