fw: Remove unnecessary memcpy() from putinthex()

Signed-off-by: Daniel Lublin <daniel@lublin.se>
This commit is contained in:
Michael Cardell Widerkrantz 2023-02-27 16:37:35 +01:00 committed by Daniel Lublin
parent b9c415f5d6
commit b292c72534
No known key found for this signature in database
GPG Key ID: 75BD0FEB8D3E7830

View File

@ -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]);