prefix 0x to printing hex values (optional)

This commit is contained in:
proddy
2020-10-17 16:56:28 +02:00
parent 07b8c3bb25
commit 1b1b1e6cee
2 changed files with 8 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ namespace emsesp {
class Helpers {
public:
static char * hextoa(char * result, const uint8_t value);
static char * hextoa(char * result, const uint8_t value, bool prefix = false);
static std::string data_to_hex(const uint8_t * data, const uint8_t length);
static char * render_value(char * result, const float value, const uint8_t format); // format is the precision