Skip to content

Commit

Permalink
core: fix string2hex returned length
Browse files Browse the repository at this point in the history
Reported by @johandeclercqdemocon in Ticket #1957

(cherry picked from commit 01e0ff9)
  • Loading branch information
razvancrainea committed Feb 7, 2020
1 parent 59e1e90 commit 3f3f496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ut.h
Expand Up @@ -441,7 +441,7 @@ inline static int string2hex(
str++;

}
return orig_len-len;
return orig_len * 2;
}

/* portable sleep in microseconds (no interrupt handling now) */
Expand Down

0 comments on commit 3f3f496

Please sign in to comment.