diff --git a/src/helpers.cpp b/src/helpers.cpp index 5fbcb8792..3320f5037 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -190,11 +190,11 @@ char * Helpers::render_boolean(char * result, bool value) { return result; } -// render for native char strings -char * Helpers::render_value(char * result, const char * value, const int8_t format __attribute__((unused))) { - strcpy(result, value); // un-safe but we don't care - return result; -} +// // render for native char strings +// char * Helpers::render_value(char * result, const char * value, const int8_t format __attribute__((unused))) { +// strcpy(result, value); // un-safe but we don't care +// return result; +// } // convert unsigned int (single byte) to text value and returns it // format: 255(0xFF)=boolean, 0=no formatting, otherwise divide by format diff --git a/src/helpers.h b/src/helpers.h index 2aa33ae68..06a4bb671 100644 --- a/src/helpers.h +++ b/src/helpers.h @@ -37,7 +37,7 @@ class Helpers { static char * render_value(char * result, const uint32_t value, const int8_t format, const uint8_t fahrenheit = 0); static char * render_value(char * result, const int16_t value, const int8_t format, const uint8_t fahrenheit = 0); static char * render_value(char * result, const int32_t value, const int8_t format, const uint8_t fahrenheit = 0); - static char * render_value(char * result, const char * value, const int8_t format); + // static char * render_value(char * result, const char * value, const int8_t format); static char * render_boolean(char * result, bool value); static char * hextoa(char * result, const uint8_t value);