Various refactorings

This commit is contained in:
feelfree69
2026-04-12 13:02:42 +02:00
parent 2a9c7d2828
commit c1a414833d
8 changed files with 84 additions and 64 deletions
+6 -7
View File
@@ -13,12 +13,11 @@
#include "version.h"
#include "machine.h"
#include "page_impl.h"
#include "syslog.h"
// #define DEBUG
#include "debug.h"
extern __xdata uip_ipaddr_t syslog_addr;
#define L2_MAX_TRANSFER 30
#pragma codeseg BANK1
@@ -228,11 +227,11 @@ void send_basic_info(void)
itoa_html(uip_netmask[0] >> 8); char_to_html('.');
itoa_html(uip_netmask[1]); char_to_html('.');
itoa_html(uip_netmask[1] >> 8);
slen += strtox(outbuf + slen, "\",\"syslog_address\":\"");
itoa_html(syslog_addr[0]); char_to_html('.');
itoa_html(syslog_addr[0] >> 8); char_to_html('.');
itoa_html(syslog_addr[1]); char_to_html('.');
itoa_html(syslog_addr[1] >> 8);
slen += strtox(outbuf + slen, "\",\"syslog_server_ip\":\"");
itoa_html(syslog_state.server_ip[0]); char_to_html('.');
itoa_html(syslog_state.server_ip[1]); char_to_html('.');
itoa_html(syslog_state.server_ip[2]); char_to_html('.');
itoa_html(syslog_state.server_ip[3]);
slen += strtox(outbuf + slen, "\",\"mac_address\":\"");
byte_to_html(uip_ethaddr.addr[0]); char_to_html(':');
byte_to_html(uip_ethaddr.addr[1]); char_to_html(':');