converter: Fix to_hex conversion
authorCorentin Le Gall <corentin.legall@iot.bzh>
Thu, 28 Nov 2019 08:15:19 +0000 (09:15 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Tue, 3 Dec 2019 18:46:26 +0000 (19:46 +0100)
commit25dd725961143aed184423429d1c58bf6d8eb634
tree1dd356fef1fd0025fb0064fd6284aa8d57a49856
parenta8d03c2ab5d1c1e3b90ba4ace93e01ee0dee81b0
converter: Fix to_hex conversion

Convert byte to hex without forgetting '0's.
ex: Before: '10' -> 'a'
    After: '10' -> '0a'

Change-Id: I7346893eaf83aaa9294e48c20cbffd1a61789b51
Signed-off-by: Corentin Le Gall <corentin.legall@iot.bzh>
low-can-binding/utils/converter.cpp