switched all users of cfs_seek(x,y) to cfs_seek(x,y,CFS_SEEK_SET)
This commit is contained in:
parent
3191a2568c
commit
a0226e2418
16 changed files with 55 additions and 55 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* @(#)$Id: codeprop-tmp.c,v 1.4 2007/03/18 13:15:01 ksb Exp $
|
||||
* @(#)$Id: codeprop-tmp.c,v 1.5 2009/02/27 14:28:02 nvt-se Exp $
|
||||
*/
|
||||
|
||||
/** \addtogroup esb
|
||||
|
@ -213,7 +213,7 @@ send_udpdata(struct codeprop_udphdr *uh)
|
|||
len = s.len - s.addr;
|
||||
}
|
||||
|
||||
cfs_seek(fd, s.addr);
|
||||
cfs_seek(fd, s.addr, CFS_SEEK_SET);
|
||||
cfs_read(fd, &uh->data[0], len);
|
||||
/* eeprom_read(EEPROMFS_ADDR_CODEPROP + s.addr,
|
||||
&uh->data[0], len);*/
|
||||
|
@ -320,7 +320,7 @@ PT_THREAD(recv_udpthread(struct pt *pt))
|
|||
if(len > 0) {
|
||||
/* eeprom_write(EEPROMFS_ADDR_CODEPROP + s.addr,
|
||||
&uh->data[0], len);*/
|
||||
cfs_seek(fd, s.addr);
|
||||
cfs_seek(fd, s.addr, CFS_SEEK_SET);
|
||||
cfs_write(fd, &uh->data[0], len);
|
||||
|
||||
/* beep();*/
|
||||
|
@ -406,7 +406,7 @@ PT_THREAD(recv_tcpthread(struct pt *pt))
|
|||
/* eeprom_write(EEPROMFS_ADDR_CODEPROP + s.addr,
|
||||
uip_appdata,
|
||||
uip_datalen());*/
|
||||
cfs_seek(fd, s.addr);
|
||||
cfs_seek(fd, s.addr, CFS_SEEK_SET);
|
||||
cfs_write(fd, uip_appdata, uip_datalen());
|
||||
s.addr += datalen;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue