Skip to content

Commit

Permalink
FW-415. Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
changtengfei committed Jul 2, 2015
1 parent 2cb63dc commit 676b206
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions projects/common/03oos_sniffer/03oos_sniffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ int mote_main(void) {

//=========================== interface =======================================
void sniffer_setListeningChannel(uint8_t channel){

while(app_vars.flag != APP_FLAG_IDLE);
radio_rfOff();
radio_rfOn();
Expand All @@ -106,6 +107,7 @@ void sniffer_setListeningChannel(uint8_t channel){
//=========================== callbacks =======================================

void cb_startFrame(PORT_TIMER_WIDTH timestamp) {

app_vars.flag |= APP_FLAG_START_FRAME;
// led
leds_error_on();
Expand Down Expand Up @@ -135,6 +137,7 @@ void cb_endFrame(PORT_TIMER_WIDTH timestamp) {
}

void cb_timer(void) {

app_vars.outputOrInput = (app_vars.outputOrInput+1)%2;
if (app_vars.outputOrInput == 1) {
openserial_stop();
Expand All @@ -149,10 +152,13 @@ void cb_timer(void) {

// ================================ task =======================================
void task_uploadPacket(){

openserial_printPacket(&(app_vars.packet[0]),app_vars.packet_len,app_vars.channel);
}
// ================================= stubbing ==================================

void openbridge_triggerData(){return;}

void sixtop_setEBPeriod(uint8_t ebPeriod){return;}
void ieee154e_setSingleChannel(uint8_t channel){return;}
void icmpv6rpl_setDIOPeriod(uint16_t dioPeriod) {return;}
Expand Down
4 changes: 2 additions & 2 deletions projects/common/03oos_sniffer/03oos_sniffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
\author Tengfei Chang <tengfei.chang@eecs.berkeley.edu>, June 2015.
*/

#ifndef __openwsn_H
#define __openwsn_H
#ifndef __03OOS_SNIFFER_H
#define __03OOS_SNIFFER_H

#include "opendefs.h"

Expand Down

0 comments on commit 676b206

Please sign in to comment.