Fix serial buffer length to fit signed char

This commit is contained in:
logicog
2025-07-28 23:00:15 +02:00
parent 2eaea39e18
commit 417dfe2345
+5 -3
View File
@@ -3,9 +3,9 @@
#include "uip/uip-conf.h" #include "uip/uip-conf.h"
// Headers for calls in the common code area (HOME/BANK0) // The serial buffer. Defines the command line size
// Must be 2^x and <= 128
#define SBUF_SIZE 256 #define SBUF_SIZE 128
// For RX data, a propriatary RTL FRAME is inserted. Instead of 0x0800 for IPv4, // For RX data, a propriatary RTL FRAME is inserted. Instead of 0x0800 for IPv4,
// the RTL_FRAME_TAG_ID is used as part of an 8-byte tag. When VLAN is activated, // the RTL_FRAME_TAG_ID is used as part of an 8-byte tag. When VLAN is activated,
@@ -32,6 +32,8 @@ struct uip_eth_addr {
extern __xdata uint8_t uip_buf[UIP_CONF_BUFFER_SIZE+2]; extern __xdata uint8_t uip_buf[UIP_CONF_BUFFER_SIZE+2];
// Headers for calls in the common code area (HOME/BANK0)
void print_string(__code char *p); void print_string(__code char *p);
void print_long(__xdata uint32_t a); void print_long(__xdata uint32_t a);
void print_short(uint16_t a); void print_short(uint16_t a);