Skip to content

Commit

Permalink
fixed transceiver for mc1322x
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegHahm committed Jul 24, 2013
1 parent 19e4034 commit f12d562
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sys/include/transceiver.h
Expand Up @@ -31,7 +31,7 @@
#define TRANSCEIVER_CC1100 (0x01) ///< CC110X transceivers
#define TRANSCEIVER_CC1020 (0x02) ///< CC1020 transceivers
#define TRANSCEIVER_CC2420 (0x04) ///< CC2420 transceivers
#define TRANSCEIVER_CC2420 (0x08) ///< MC1322X transceivers
#define TRANSCEIVER_MC1322X (0x08) ///< MC1322X transceivers

/**
* @brief Data type for transceiver specification
Expand Down
9 changes: 6 additions & 3 deletions sys/transceiver/transceiver.c
Expand Up @@ -364,8 +364,11 @@ static void receive_packet(uint16_t type, uint8_t pos)
#elif MODULE_CC110X
receive_cc1100_packet(trans_p);
#endif
} else if (type == RCV_PKT_MC1322X) {
}
else if (type == RCV_PKT_MC1322X) {
#ifdef MODULE_MC1322X
receive_mc1322x_packet(trans_p);
#endif
}
else if (type == RCV_PKT_CC2420) {
#ifdef MODULE_CC2420
Expand Down Expand Up @@ -494,9 +497,9 @@ static uint8_t send_packet(transceiver_type_t t, void *pkt)
#ifdef MODULE_CC110X_NG
cc110x_packet_t cc110x_pkt;
#endif
//#ifdef MODULE_MC1322X
#ifdef MODULE_MC1322X
maca_packet_t* maca_pkt = maca_get_free_packet();
//#endif
#endif

#ifdef MODULE_CC2420
cc2420_packet_t cc2420_pkt;
Expand Down

0 comments on commit f12d562

Please sign in to comment.