diff --git a/radio/src/gui/colorlcd/str_functions.cpp b/radio/src/gui/colorlcd/str_functions.cpp index 06c619cdc..d6e9bafb9 100644 --- a/radio/src/gui/colorlcd/str_functions.cpp +++ b/radio/src/gui/colorlcd/str_functions.cpp @@ -24,7 +24,7 @@ #include #include "str_functions.h" -static char splitChars[] = { ' ', '-', '\t' }; +static const char splitChars[] = { " -\t" }; void removeAllWhiteSpace(char *str) { @@ -67,7 +67,7 @@ std::string trim_start(std::string str) return str.substr(i); } -std::vector Explode(std::string str, char *splitChars) +std::vector Explode(std::string str, const char *splitChars) { std::vector parts; int startIndex = 0;