mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-03-08 15:05:55 -05:00
fw: Remove unnecessary memcpy() from putinthex()
Signed-off-by: Daniel Lublin <daniel@lublin.se>
This commit is contained in:
parent
b9c415f5d6
commit
b292c72534
@ -112,9 +112,8 @@ void htif_puthex(uint8_t c)
|
||||
|
||||
void htif_putinthex(const uint32_t n)
|
||||
{
|
||||
uint8_t buf[4];
|
||||
uint8_t *buf = (uint8_t *)&n;
|
||||
|
||||
memcpy(buf, &n, 4);
|
||||
htif_puts("0x");
|
||||
for (int i = 3; i > -1; i--) {
|
||||
htif_puthex(buf[i]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user