[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/TestPrintf
PrintfClient.java, 1.4, 1.5
Kevin Klues
klueska at users.sourceforge.net
Mon Jul 16 17:19:56 PDT 2007
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tools/tinyos/misc
tos-build-deluge-image.1, NONE, 1.1 tos-deluge.1, NONE,
1.1 Makefile.am, 1.4, 1.5 tinyos.py, 1.2,
1.3 tos-build-deluge-image, 1.1, 1.2 tos-deluge, 1.6, 1.7
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/cpp/sf tcpcomm.cpp,
1.2, 1.3 sfcontrol.cpp, 1.2, 1.3 sf.cpp, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/TestPrintf
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv27164
Modified Files:
PrintfClient.java
Log Message:
Fixed bug that printed extra characters if trailing unused space in msg buffer sent over the serial line
Index: PrintfClient.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/TestPrintf/PrintfClient.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PrintfClient.java 12 Dec 2006 18:22:50 -0000 1.4
--- PrintfClient.java 17 Jul 2007 00:19:54 -0000 1.5
***************
*** 44,50 ****
public void messageReceived(int to, Message message) {
PrintfMsg msg = (PrintfMsg)message;
! for(int i=0; i<msg.dataLength(); i++) {
char nextChar = (char)(msg.getElement_buffer(i));
! System.out.print(nextChar);
}
}
--- 44,51 ----
public void messageReceived(int to, Message message) {
PrintfMsg msg = (PrintfMsg)message;
! for(int i=0; i<msg.totalSize_buffer(); i++) {
char nextChar = (char)(msg.getElement_buffer(i));
! if(nextChar != 0)
! System.out.print(nextChar);
}
}
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tools/tinyos/misc
tos-build-deluge-image.1, NONE, 1.1 tos-deluge.1, NONE,
1.1 Makefile.am, 1.4, 1.5 tinyos.py, 1.2,
1.3 tos-build-deluge-image, 1.1, 1.2 tos-deluge, 1.6, 1.7
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/cpp/sf tcpcomm.cpp,
1.2, 1.3 sfcontrol.cpp, 1.2, 1.3 sf.cpp, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list