mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
replace char * tags with an ID #632
This commit is contained in:
@@ -422,7 +422,7 @@ std::string Helpers::toLower(std::string const & s) {
|
||||
// checks if we can convert a char string to a lowercase string
|
||||
bool Helpers::value2string(const char * v, std::string & value) {
|
||||
if ((v == nullptr) || (strlen(v) == 0)) {
|
||||
value = {};
|
||||
value = std::string{};
|
||||
return false;
|
||||
}
|
||||
value = toLower(v);
|
||||
|
||||
Reference in New Issue
Block a user