tintty
tintty copied to clipboard
Will not compile under Arduino 1.8.13
Following error:
tintty_main:38:1: error: cannot convert '<lambda(int16_t, int16_t, int16_t, int16_t, uint16_t)>' to 'void (*)(int16_t, int16_t, int16_t, int16_t, uint16_t) {aka void (*)(int, int, int, int, unsigned int)}' in initialization }; ^ tintty_main:38:1: error: cannot convert '<lambda(int16_t, int16_t, int16_t, int16_t, uint16_t*)>' to 'void (*)(int16_t, int16_t, int16_t, int16_t, uint16_t*) {aka void (*)(int, int, int, int, unsigned int*)}' in initialization tintty_main:38:1: error: cannot convert '<lambda(int16_t)>' to 'void (*)(int16_t) {aka void (*)(int)}' in initialization /Users/Wayne/Development/vt100/tintty/tintty_main/tintty_main.ino: In function 'void setup()': tintty_main:90:3: error: cannot convert 'setup()::<lambda()>' to 'char (*)()' for argument '1' to 'void tintty_run(char (*)(), char (*)(), void (*)(char), tintty_display*)' );
I have very little experience with Lambdas so I'm somewhat stuck :-)
Hey, thanks for the report! I am catching up on some other projects still, but I will try to triage this soonish.
I'm not familiar with lambdas either, so asked on the platformio forum. maxgerhardt pointed me to this issue and also gave me a fix: Replace all [=] with [] (just use Edit->Replace)
Worked right away here.