1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

Merge pull request #141 from LudwigOrtmann/transceiver_receive_types_fix

Fix transceiver.c: receive_packet
This commit is contained in:
Oleg Hahm 2013-08-15 01:43:44 -07:00
commit f81fc54bc7

View File

@ -323,24 +323,31 @@ static void receive_packet(uint16_t type, uint8_t pos)
if (type == RCV_PKT_CC1100) {
#ifdef MODULE_CC110X_NG
receive_cc110x_packet(trans_p);
type = TRANSCEIVER_CC1100;
#elif MODULE_CC110X
receive_cc1100_packet(trans_p);
type = TRANSCEIVER_CC1100;
#else
trans_p = NULL;
type = TRANSCEIVER_NONE;
#endif
}
else if (type == RCV_PKT_MC1322X) {
#ifdef MODULE_MC1322X
receive_mc1322x_packet(trans_p);
type = TRANSCEIVER_MC1322X;
#else
trans_p = NULL;
type = TRANSCEIVER_NONE;
#endif
}
else if (type == RCV_PKT_CC2420) {
#ifdef MODULE_CC2420
receive_cc2420_packet(trans_p);
type = TRANSCEIVER_CC2420;
#else
trans_p = NULL;
type = TRANSCEIVER_NONE;
#endif
}
else {