Chris--A / PrintEx

An extension to the Arduino Print library, and much, much more...
GNU General Public License v3.0
61 stars 16 forks source link

Bug found in concat methods. #16

Closed Chris--A closed 8 years ago

Chris--A commented 8 years ago

When printing using concat & concatln mixing certain methods can cause a compile error.

This occurred after moving the concat methods to their own module.

Example sketch which will no longer compile.


void setup() {
  Serial.begin(9600);
  Serial.println("Starting");

  byte rval = 255;
  byte gval = 100;
  byte bval = 232;  

  PrintEx serial = Serial;
  serial.concat(rval).concat(',').concat(gval).concat(',').concatln(bval);
}

void loop() {}