[Tinyos-beta-commits] CVS: tinyos-1.x/beta/platform/imote2
BluSHM.nc, 1.1, 1.2
Josh
jsherbach at users.sourceforge.net
Thu Aug 4 16:01:09 PDT 2005
Update of /cvsroot/tinyos/tinyos-1.x/beta/platform/imote2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8535
Modified Files:
BluSHM.nc
Log Message:
Fix for a bug when BluSH receives strings of text rather than individual characters as input.
Index: BluSHM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/platform/imote2/BluSHM.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** BluSHM.nc 9 Mar 2005 00:59:24 -0000 1.1
--- BluSHM.nc 4 Aug 2005 23:00:59 -0000 1.2
***************
*** 4,16 ****
interface StdControl;
}
!
! uses
! {
! interface StdControl as UartControl;
! interface SendVarLenPacket as UartSend;
! interface ReceiveData as UartReceive;
!
! interface BluSH_AppI[uint8_t id];
[...1130 lines suppressed...]
! call UartSend.send( &buff[i], 1 );
! }
! else
! {
! // Send bell back, avoid buffer overflow.
! //buff[i] = '\a';
! call UartSend.send( "\a", 1 );
! }
! }
! }
!
! return SUCCESS;
! }
!
! event result_t UartSend.sendDone(uint8_t* packet, result_t success)
! {
! // This function does nothing.
! return SUCCESS;
! }
}
More information about the Tinyos-beta-commits
mailing list