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"));
The error msg is:
Code:
xepdmgrclient.c: In function `int EpdRefreshAuto(sEpd*, int)':
xepdmgrclient.c:101: error: invalid conversion from `const char*' to `char*'
xepdmgrclient.c:101: error: initializing argument 2 of `int EpdLocalSend(_sEpd*, char*)'
So I modified xepdmgrclient.c with:
Code:
static char auto0[]="Auto(0)\n";
static char auto1[]="Auto(1)\n";
return(EpdLocalSend((_sEpd *)Epd,(Enabled!=0)?auto1:auto0));