mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
httpd: fix print ip-address, added missing shift.
This commit is contained in:
+1
-1
@@ -141,7 +141,7 @@ uint16_t html_index(void)
|
|||||||
itoa_html(uip_hostaddr[0]); char_to_html('.');
|
itoa_html(uip_hostaddr[0]); char_to_html('.');
|
||||||
itoa_html(uip_hostaddr[0] >> 8); 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]); char_to_html('.');
|
||||||
itoa_html(uip_hostaddr[1]);
|
itoa_html(uip_hostaddr[1] >> 8);
|
||||||
slen += strtox(outbuf + slen, "</td></tr><tr><td>Gateway</td><td>");
|
slen += strtox(outbuf + slen, "</td></tr><tr><td>Gateway</td><td>");
|
||||||
itoa_html(uip_draddr[0]); char_to_html('.');
|
itoa_html(uip_draddr[0]); char_to_html('.');
|
||||||
itoa_html(uip_draddr[0] >> 8); char_to_html('.');
|
itoa_html(uip_draddr[0] >> 8); char_to_html('.');
|
||||||
|
|||||||
+1
-1
@@ -26,4 +26,4 @@ Other memory:
|
|||||||
---------------- -------- -------- -------- --------
|
---------------- -------- -------- -------- --------
|
||||||
PAGED EXT. RAM 0 256
|
PAGED EXT. RAM 0 256
|
||||||
EXTERNAL RAM 0x0001 0x1b28 6952 16777216
|
EXTERNAL RAM 0x0001 0x1b28 6952 16777216
|
||||||
ROM/EPROM/FLASH 0x0000 0x1b85c 44065 16777216
|
ROM/EPROM/FLASH 0x0000 0x1b85e 44067 16777216
|
||||||
|
|||||||
Reference in New Issue
Block a user