Merge pull request #451 from simonduq/fix/main-print-def-channel

Main: always log 802.15.4 default channel
This commit is contained in:
George Oikonomou 2018-04-25 23:23:55 +01:00 committed by GitHub
commit 48dfb0a23e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,11 +91,11 @@ main(void)
LOG_INFO("- Net: %s\n", NETSTACK_NETWORK.name);
LOG_INFO("- MAC: %s\n", NETSTACK_MAC.name);
LOG_INFO("- 802.15.4 PANID: 0x%04x\n", IEEE802154_PANID);
#if MAC_CONF_WITH_CSMA
LOG_INFO("- 802.15.4 Channel: %u\n", IEEE802154_DEFAULT_CHANNEL);
#elif MAC_CONF_WITH_TSCH
#if MAC_CONF_WITH_TSCH
LOG_INFO("- 802.15.4 TSCH default hopping sequence length: %u\n", (unsigned)sizeof(TSCH_DEFAULT_HOPPING_SEQUENCE));
#endif
#else /* MAC_CONF_WITH_TSCH */
LOG_INFO("- 802.15.4 Default channel: %u\n", IEEE802154_DEFAULT_CHANNEL);
#endif /* MAC_CONF_WITH_TSCH */
netstack_init();