add type cast so compiles standalone

This commit is contained in:
proddy
2023-03-05 14:33:01 +01:00
parent ef602ca70b
commit 607a725395
8 changed files with 16 additions and 16 deletions

View File

@@ -149,7 +149,7 @@ uint8_t Command::process(const char * path, const bool is_admin, const JsonObjec
if (data.is<const char *>()) {
const char * d = data.as<const char *>();
if (strlen(d)) {
char * device_end = strchr(d, '/');
char * device_end = (char *)strchr(d, '/');
if (device_end != nullptr) {
char device_s[15] = {'\0'};
const char * device_p = device_s;