hi
this was my base, and my solution for this.
but if i send more as 10 Bytes ( data + \0 ) then the string is cutting.
because the sbuffer is 20 ( sbuff[20] ) i think there can it be a bug in FC.
perhabs you can check it, would be fine
thank you.
best wishes
rudi
edit: solved
thanks Leigh, i edit the c code in FCM_helperFunc_X:
Code: Select all
int (*lf) ();
lf = ( unsigned short *) FCL_PADDR;
lf("DODO1\n");
// old
// lf(FCL_SBUFF);
// new
lf(FCL_SBUFF, FCLsz_SBUFF);
think now i understand the principal with strings in FC better.
this local copy of strings is same theme with char++
if i want make char++ then i do not use the local copy,
you gave me this last year, i remember me
have test to make send struct now too, and do the work
will update the fcx later time and upload a solution for sending structs.
thank you!
best wishes
rudi