Just another 64bit fix
This commit is contained in:
parent
91f0059c89
commit
0288a8af4c
1 changed files with 5 additions and 5 deletions
|
@ -114,12 +114,12 @@ int main ( int argc, char ** argv )
|
|||
len+=sizeof(axisvalue);
|
||||
}
|
||||
|
||||
long int b_l = b;
|
||||
memcpy(packet+len, &b_l, 4);
|
||||
len+=4;
|
||||
int32_t b_l = b;
|
||||
memcpy(packet+len, &b_l, sizeof(b_l));
|
||||
len+=sizeof(b_l);
|
||||
|
||||
char termstr[5] = "\0\0\r\n";
|
||||
memcpy(packet+len, &termstr, 4);
|
||||
const char * termstr = "\0\0\r\n";
|
||||
memcpy(packet+len, termstr, 4);
|
||||
len += 4;
|
||||
|
||||
c.send( packet, len, 0 );
|
||||
|
|
Loading…
Add table
Reference in a new issue