Quote:
Originally Posted by ericshliao
One point that I forgot to mention:
It seems iRex SDK won't accept
Code:
return(EpdLocalSend((_sEpd *)Epd,(Enabled!=0)?"Auto(1)\n":"Auto(0)\n"));
|
Thanks.
Well, it isn't iRex SDK what is complaining, but it is the C++ compiler trying to compile C code. C++ is a lot more nitpicking that C in regard to automatic casts.
Your workaround is OK, but it would be simpler to just declare the second argument of the declaration of EpdLocalSend as an "const char *".
I'll make the code c++-safe in the next release

.