Working on eZ430 (with MSP430F2274).

This commit is contained in:
Daniel Beer 2010-01-04 16:19:10 +13:00
parent 7036aec135
commit 930a2d4a5f
1 changed files with 10 additions and 0 deletions

10
fet.c
View File

@ -409,6 +409,16 @@ static int send_command(int command_code,
/* Extra data */
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);
len += exlen;
}