ver1
Revision 183:960b4e7df69d, committed 2020-02-24
- Comitter:
- hnript
- Date:
- Mon Feb 24 07:38:13 2020 +0000
- Parent:
- 174:f3daa8245e51
- Commit message:
- ver1
Changed in this revision
--- a/ChannelPlan.h Tue Sep 04 16:23:41 2018 -0500 +++ b/ChannelPlan.h Mon Feb 24 07:38:13 2020 +0000 @@ -61,6 +61,7 @@ AS923 = DYNAMIC | 0x02, KR920 = DYNAMIC | 0x03, AS923_JAPAN = DYNAMIC | 0x04, + VN919 = DYNAMIC | 0x05, NONE = 0xFF, };
--- a/MTS-Lora/vendor/multitech/MTS-Utils/MTSLog.h Tue Sep 04 16:23:41 2018 -0500 +++ b/MTS-Lora/vendor/multitech/MTS-Utils/MTSLog.h Mon Feb 24 07:38:13 2020 +0000 @@ -16,6 +16,7 @@ #define __CLASSNAME__ className(__PRETTY_FUNCTION__) +//#define MTS_DEBUG #ifdef MTS_DEBUG #define logFatal(format, ...) \
--- a/MTS-Lora/vendor/multitech/MTS-Utils/MTSText.h Tue Sep 04 16:23:41 2018 -0500 +++ b/MTS-Lora/vendor/multitech/MTS-Utils/MTSText.h Mon Feb 24 07:38:13 2020 +0000 @@ -1,6 +1,10 @@ #ifndef MTSTEXT_H #define MTSTEXT_H +#ifndef MTS_DEBUG +#define MTS_DEBUG +#endif + #include <string> #include <vector> #include <stddef.h> @@ -56,7 +60,7 @@ static std::string float2String(double val, int precision); static std::string bin2hexString(const std::vector<uint8_t>& data, const char* delim = "", bool leadingZeros = false, bool bytePadding = true); - + static std::string bin2hexString(const uint8_t* data, const uint32_t len, const char* delim = "", bool leadingZeros = false, bool bytePadding = true); static std::string bin2base64(const std::vector<uint8_t>& data); @@ -64,12 +68,12 @@ static std::string bin2base64(const uint8_t* data, size_t size); static bool base642bin(const std::string in, std::vector<uint8_t>& out); - - static void ltrim(std::string& str, const char* args); - - static void rtrim(std::string& str, const char* args); - - static void trim(std::string& str, const char* args); + + static void ltrim(std::string& str, const char* args); + + static void rtrim(std::string& str, const char* args); + + static void trim(std::string& str, const char* args); private: // Safety for class with only static methods
--- a/plans/ChannelPlans.h Tue Sep 04 16:23:41 2018 -0500 +++ b/plans/ChannelPlans.h Mon Feb 24 07:38:13 2020 +0000 @@ -5,7 +5,7 @@ #include "ChannelPlan_KR920.h" #include "ChannelPlan_IN865.h" #include "ChannelPlan_AS923_Japan.h" - +#include "ChannelPlan_VN919.h" #define CP_AS923 1 #define CP_AU915 2 @@ -14,3 +14,4 @@ #define CP_KR920 5 #define CP_IN865 6 #define CP_AS923_JAPAN 7 +#define CP_VN919 8