Changed fromHex() to use an supplied buffer

Solves the problem with returning a pointer to local variable.

Signed-off-by: Karl Thorén <karl.h.thoren@gmail.com>
This commit is contained in:
Karl Thorén
2020-12-27 16:29:53 +01:00
parent 59ca29f6a8
commit feed10184b
2 changed files with 13 additions and 8 deletions

View File

@@ -107,7 +107,7 @@ private:
void notFound();
String toHex(uint8_t* in, uint8_t size);
uint8_t* fromHex(String in, uint8_t size);
void fromHex(uint8_t *out, String in, uint8_t size);
void printD(String fmt, ...);
void printI(String fmt, ...);