![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork to see if I can get working
Dependencies: BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated
Fork of xDotBridge_update_test20180823 by
Diff: xDotBridge/src/dot_util.cpp
- Revision:
- 89:edfe5d376e55
- Parent:
- 81:1eb0f16b2ab9
- Child:
- 91:8196900df6fe
--- a/xDotBridge/src/dot_util.cpp Thu Nov 16 18:10:53 2017 -0700 +++ b/xDotBridge/src/dot_util.cpp Sat Nov 18 15:50:10 2017 -0700 @@ -1,4 +1,5 @@ #include "dot_util.h" +#include "ChannelPlan.h" #if defined(TARGET_XDOT_L151CC) #include "xdot_low_power.h" #endif @@ -20,9 +21,10 @@ logInfo("version ------------------ %s", dot->getId().c_str()); logInfo("device ID/EUI ------------ %s", mts::Text::bin2hexString(dot->getDeviceId()).c_str()); logInfo("frequency band ----------- %s", mDot::FrequencyBandStr(dot->getFrequencyBand()).c_str()); -// if (dot->getFrequencySubBand() != mDot::FB_EU868) { -// logInfo("frequency sub band ------- %u", dot->getFrequencySubBand()); -// } + if ((dot->getFrequencySubBand() != lora::ChannelPlan::EU868_OLD) + || (dot->getFrequencySubBand() != lora::ChannelPlan::EU868)) { + logInfo("frequency sub band ------- %u", dot->getFrequencySubBand()); + } logInfo("public network ----------- %s", dot->getPublicNetwork() ? "on" : "off"); logInfo("========================="); logInfo("credentials configuration");