[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/printf PrintfP.nc, 1.13, 1.14
Chieh-Jan Mike Liang
liang_mike at users.sourceforge.net
Tue Jul 8 22:16:18 PDT 2008
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/eyesIFX RadioDataLinkC.nc, 1.7, 1.8
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/eyesIFX TimeSyncMessageP.nc, NONE, 1.1 TimeSyncMessageC.nc, NONE, 1.1 PacketStampP.nc, NONE, 1.1 PacketStampC.nc, NONE, 1.1 LocalTimeP.nc, 1.4, 1.5 LocalTimeC.nc, 1.2, 1.3 ActiveMessageC.nc, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/printf
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv19103
Modified Files:
PrintfP.nc
Log Message:
Make sure that Printf was the one that started serial before running the code inside SerialControl.startDone
Index: PrintfP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/printf/PrintfP.nc,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** PrintfP.nc 2 Jul 2008 18:46:18 -0000 1.13
--- PrintfP.nc 9 Jul 2008 05:16:16 -0000 1.14
***************
*** 112,120 ****
event void SerialControl.startDone(error_t error) {
#ifdef _H_atmega128hardware_H
! stdout = &atm128_stdout;
#endif
! atomic state = S_STARTED;
! signal Boot.booted();
}
--- 112,122 ----
event void SerialControl.startDone(error_t error) {
+ if (state == S_STOPPED) {
#ifdef _H_atmega128hardware_H
! stdout = &atm128_stdout;
#endif
! atomic state = S_STARTED;
! signal Boot.booted();
! }
}
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/eyesIFX RadioDataLinkC.nc, 1.7, 1.8
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/eyesIFX TimeSyncMessageP.nc, NONE, 1.1 TimeSyncMessageC.nc, NONE, 1.1 PacketStampP.nc, NONE, 1.1 PacketStampC.nc, NONE, 1.1 LocalTimeP.nc, 1.4, 1.5 LocalTimeC.nc, 1.2, 1.3 ActiveMessageC.nc, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list