I have a method that accepts a string:
void log(String message) {
Serial.println(message);
}
I'm calling it like this:
log("write(" + String(angle + '0') + ");");
But I get this compilation error:
error: cannot convert 'StringSumHelper' to 'double' for argument '1' to 'double log(double)'
log("write(" + String(angle + '0') + ");");
^
Compilation error: Error: 13 INTERNAL: exit status 1
What gives? Where's this double
it's expecting/receiving coming from?