From 2eb1416adaaca56dfc0c9e55abfb053fd3390083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= Date: Thu, 11 Sep 2025 07:47:33 +0200 Subject: [PATCH] httpd: fix print ip-address, added missing shift. --- httpd/page_impl.c | 2 +- rtlplayground.mem | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/httpd/page_impl.c b/httpd/page_impl.c index 79f62f8..89ae166 100644 --- a/httpd/page_impl.c +++ b/httpd/page_impl.c @@ -141,7 +141,7 @@ uint16_t html_index(void) itoa_html(uip_hostaddr[0]); char_to_html('.'); itoa_html(uip_hostaddr[0] >> 8); char_to_html('.'); itoa_html(uip_hostaddr[1]); char_to_html('.'); - itoa_html(uip_hostaddr[1]); + itoa_html(uip_hostaddr[1] >> 8); slen += strtox(outbuf + slen, "Gateway"); itoa_html(uip_draddr[0]); char_to_html('.'); itoa_html(uip_draddr[0] >> 8); char_to_html('.'); diff --git a/rtlplayground.mem b/rtlplayground.mem index d7891a6..acbb192 100644 --- a/rtlplayground.mem +++ b/rtlplayground.mem @@ -26,4 +26,4 @@ Other memory: ---------------- -------- -------- -------- -------- PAGED EXT. RAM 0 256 EXTERNAL RAM 0x0001 0x1b28 6952 16777216 - ROM/EPROM/FLASH 0x0000 0x1b85c 44065 16777216 + ROM/EPROM/FLASH 0x0000 0x1b85e 44067 16777216