View Single Post
Old 08-23-2009, 06:32 PM   #133
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
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));
ericshliao is offline   Reply With Quote