[Tinyos-beta-commits] CVS: tinyos-1.x/beta/SystemCore/DelugeMonitor
DelugeControl.h, 1.8, 1.9 DelugeControlM.nc, 1.8, 1.9
Gilman Tolle
gtolle at users.sourceforge.net
Thu Oct 14 21:54:05 PDT 2004
Update of /cvsroot/tinyos/tinyos-1.x/beta/SystemCore/DelugeMonitor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9394
Modified Files:
DelugeControl.h DelugeControlM.nc
Log Message:
Added ability to specify reboot delay remotely
Index: DelugeControl.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/SystemCore/DelugeMonitor/DelugeControl.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** DelugeControl.h 7 Sep 2004 23:32:22 -0000 1.8
--- DelugeControl.h 15 Oct 2004 04:54:02 -0000 1.9
***************
*** 16,19 ****
--- 16,20 ----
uint8_t runningImgNum;
+ uint16_t rebootDelay;
} NetProgCmdMsg;
Index: DelugeControlM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/SystemCore/DelugeMonitor/DelugeControlM.nc,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** DelugeControlM.nc 7 Sep 2004 23:32:22 -0000 1.8
--- DelugeControlM.nc 15 Oct 2004 04:54:02 -0000 1.9
***************
*** 85,89 ****
simpleReboot = TRUE;
call Timer.stop();
! call Timer.start(TIMER_ONE_SHOT, DELUGE_REBOOT_DELAY);
} else if (cmdMsg->runningImgNumChanged == TRUE) {
--- 85,91 ----
simpleReboot = TRUE;
call Timer.stop();
! call Timer.start(TIMER_ONE_SHOT,
! (cmdMsg->rebootDelay == 0 ? DELUGE_REBOOT_DELAY :
! cmdMsg->rebootDelay));
} else if (cmdMsg->runningImgNumChanged == TRUE) {
***************
*** 91,95 ****
runningImgNum = cmdMsg->runningImgNum;
call Timer.stop();
! call Timer.start(TIMER_ONE_SHOT, DELUGE_REBOOT_DELAY);
}
--- 93,99 ----
runningImgNum = cmdMsg->runningImgNum;
call Timer.stop();
! call Timer.start(TIMER_ONE_SHOT,
! (cmdMsg->rebootDelay == 0 ? DELUGE_REBOOT_DELAY :
! cmdMsg->rebootDelay));
}
More information about the Tinyos-beta-commits
mailing list