Working on eZ430 (with MSP430F2274).
This commit is contained in:
parent
7036aec135
commit
930a2d4a5f
10
fet.c
10
fet.c
|
@ -409,6 +409,16 @@ static int send_command(int command_code,
|
||||||
|
|
||||||
/* Extra data */
|
/* Extra data */
|
||||||
if (extra) {
|
if (extra) {
|
||||||
|
int x = exlen;
|
||||||
|
|
||||||
|
datapkt[len++] = x & 0xff;
|
||||||
|
x >>= 8;
|
||||||
|
datapkt[len++] = x & 0xff;
|
||||||
|
x >>= 8;
|
||||||
|
datapkt[len++] = x & 0xff;
|
||||||
|
x >>= 8;
|
||||||
|
datapkt[len++] = x & 0xff;
|
||||||
|
|
||||||
memcpy(datapkt + len, extra, exlen);
|
memcpy(datapkt + len, extra, exlen);
|
||||||
len += exlen;
|
len += exlen;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue