diff --git a/ZodiacFX/src/command.c b/ZodiacFX/src/command.c index c51836c..7e8f433 100644 --- a/ZodiacFX/src/command.c +++ b/ZodiacFX/src/command.c @@ -559,8 +559,6 @@ void command_config(char *command, char *param1, char *param2, char *param3) } else { printf(" Force OpenFlow version: Disabled\r\n"); } - if (masterselect == true) printf(" Stacking Select: SLAVE\r\n"); - if (masterselect == false) printf(" Stacking Select: MASTER\r\n"); if (stackenabled == true) printf(" Stacking Status: Enabled\r\n"); if (stackenabled == false) printf(" Stacking Status: Disabled\r\n"); if (Zodiac_Config.ethtype_filter == 1) printf(" EtherType Filtering: Enabled\r\n"); diff --git a/ZodiacFX/src/http.c b/ZodiacFX/src/http.c index 1968743..3e0a9f6 100644 --- a/ZodiacFX/src/http.c +++ b/ZodiacFX/src/http.c @@ -91,6 +91,8 @@ static bool restart_required = false; // Track if any configuration changes are static bool file_upload = false; // Multi-part firmware file upload flag static bool post_pending = false; +extern bool stackenabled; + static err_t http_recv(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err); static err_t http_accept(void *arg, struct tcp_pcb *pcb, err_t err); void http_send(char *buffer, struct tcp_pcb *pcb, bool out); @@ -2083,6 +2085,8 @@ static uint8_t interfaceCreate_Home(void) int hr = (totaltime/2)/3600; int t = (totaltime/2)%3600; int min = t/60; + + sprintf(shared_buffer, http_header); @@ -2094,7 +2098,7 @@ static uint8_t interfaceCreate_Home(void) ""\ ""\ ""\ @@ -2103,7 +2107,21 @@ static uint8_t interfaceCreate_Home(void) "CPU UID: %d-%d-%d-%d
"\ "Firmware Version: %s
"\ "CPU Temp: %d C
"\ - "Uptime: %02d:%02d"\ + "Uptime: %02d:%02d
"\ + ); + if(stackenabled == true) + { + snprintf(shared_buffer+strlen(shared_buffer), SHARED_BUFFER_LEN-strlen(shared_buffer),\ + "Stacking: enabled" + ); + } + else + { + snprintf(shared_buffer+strlen(shared_buffer), SHARED_BUFFER_LEN-strlen(shared_buffer),\ + "Stacking: disabled" + ); + } + if( snprintf(shared_buffer+strlen(shared_buffer), SHARED_BUFFER_LEN-strlen(shared_buffer),\ "

"\ "
"\ ""\