[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/xe1205/phy
XE1205PhyP.nc, 1.4, 1.5
maxime muller
maxmul at users.sourceforge.net
Wed Sep 12 05:00:54 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/xe1205/phy
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv22808
Modified Files:
XE1205PhyP.nc
Log Message:
fix spi request for packet rx strength and the reading of only one byte in fifo
Index: XE1205PhyP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/xe1205/phy/XE1205PhyP.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** XE1205PhyP.nc 13 Jul 2007 15:54:09 -0000 1.4
--- XE1205PhyP.nc 12 Sep 2007 12:00:50 -0000 1.5
***************
*** 240,244 ****
if (n > 16) {
! if (n < 32) nextRxLen = n - 16; else nextRxLen = 15;
}
else {
--- 240,244 ----
if (n > 16) {
! if (n < 32) nextRxLen = n - 15; else nextRxLen = 15;
}
else {
***************
*** 283,289 ****
error_t err;
- if(call SpiResourceRssi.immediateRequest() != SUCCESS) {
- return FAIL;
- }
err = call XE1205RssiConf.setRssiMode(TRUE);
err = ecombine(err,call XE1205RssiConf.setRssiRange(FALSE));
--- 283,286 ----
***************
*** 302,305 ****
--- 299,307 ----
return EOFF;
}
+
+ if(call SpiResourceRssi.immediateRequest() != SUCCESS) {
+ return FAIL;
+ }
+
err=getRssi();
if (SUCCESS ==err) {
More information about the Tinyos-2-commits
mailing list