|
|
|
@ -7,15 +7,7 @@ using namespace std;
|
|
|
|
|
char nibble_to_hex(uint8_t i) //Conversion to hex format
|
|
|
|
|
{
|
|
|
|
|
assert(0x0 <= i && i <= 0xf);
|
|
|
|
|
//return "0123456789abcdef"[i];
|
|
|
|
|
if (i < 10)
|
|
|
|
|
{
|
|
|
|
|
return i + '0';
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return 'a' + (i - 10);
|
|
|
|
|
}
|
|
|
|
|
return "0123456789abcdef"[i];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void print_in_hex(uint8_t byte)
|
|
|
|
|