diff --git a/html/console.html b/html/console.html index b2e6597..e621f05 100644 --- a/html/console.html +++ b/html/console.html @@ -17,6 +17,11 @@ 38400 19200 9600 + 4800 + 2400 + 1200 + 600 + 300 Fmt: diff --git a/include/uart_hw.h b/include/uart_hw.h index 02614c9..0978011 100644 --- a/include/uart_hw.h +++ b/include/uart_hw.h @@ -163,6 +163,11 @@ typedef enum { } UartExistParity; typedef enum { + BIT_RATE_300 = 300, + BIT_RATE_600 = 600, + BIT_RATE_1200 = 1200, + BIT_RATE_2400 = 2400, + BIT_RATE_4800 = 4800, BIT_RATE_9600 = 9600, BIT_RATE_19200 = 19200, BIT_RATE_38400 = 38400, diff --git a/serial/console.c b/serial/console.c index 234dd06..ccd4144 100644 --- a/serial/console.c +++ b/serial/console.c @@ -67,7 +67,7 @@ ajaxConsoleBaud(HttpdConnData *connData) { len = httpdFindArg(connData->getArgs, "rate", buff, sizeof(buff)); if (len > 0) { int rate = atoi(buff); - if (rate >= 9600 && rate <= 1000000) { + if (rate >= 300 && rate <= 1000000) { uart0_baud(rate); flashConfig.baud_rate = rate; status = configSave() ? 200 : 400;