All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 7fedfcbc authored by David Johnson's avatar David Johnson

Minor fix.

parent c6a58c22
// $Id: ElabRadioDumpFHM.nc,v 1.2 2005-06-27 22:02:37 johnsond Exp $
// $Id: ElabRadioDumpFHM.nc,v 1.3 2005-06-27 22:11:57 johnsond Exp $
/* tab:4
* "Copyright (c) 2000-2003 The Regents of the University of California.
......@@ -30,7 +30,7 @@
*/
/*
* Author: Phil Buonadonna
* Revision: $Id: ElabRadioDumpFHM.nc,v 1.2 2005-06-27 22:02:37 johnsond Exp $
* Revision: $Id: ElabRadioDumpFHM.nc,v 1.3 2005-06-27 22:11:57 johnsond Exp $
*
*
*/
......@@ -260,6 +260,21 @@ implementation
#define FH_INTERVAL 1024
#endif
atomic {
call Leds.greenOn();
// freqIdx starts out at -1, so this works.
freqIdx = (++freqIdx)%freqTableLength;
call RadioControl.stop();
if (call CC1000Control.TuneManual(freqTable[freqIdx]) == 916710218) {
call Leds.redOn();
}
else {
call Leds.redOff();
}
call RadioControl.start();
call Leds.greenOff();
}
call TimerFH.start(TIMER_REPEAT,FH_INTERVAL);
return rcombine(ok1, ok2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment