mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-14 18:55:52 +00:00
* Terminal Chat: "set ..." commands, save to "node_prefs" file, consistent with the other firmwares
This commit is contained in:
@@ -115,6 +115,10 @@ static uint8_t hexVal(char c) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool Utils::isHexChar(char c) {
|
||||
return c == '0' || hexVal(c) > 0;
|
||||
}
|
||||
|
||||
bool Utils::fromHex(uint8_t* dest, int dest_size, const char *src_hex) {
|
||||
int len = strlen(src_hex);
|
||||
if (len != dest_size*2) return false; // incorrect length
|
||||
|
||||
Reference in New Issue
Block a user