Add missing baudrate settings. (#216)

pull/205/merge
hetii 8 years ago committed by Thorsten von Eicken
parent 0df16c98ac
commit b3d8072bae
  1. 5
      html/console.html
  2. 5
      include/uart_hw.h
  3. 2
      serial/console.c

@ -17,6 +17,11 @@
<option value="38400">38400</option>
<option value="19200">19200</option>
<option value="9600">9600</option>
<option value="4800">4800</option>
<option value="2400">2400</option>
<option value="1200">1200</option>
<option value="600">600</option>
<option value="300">300</option>
</select>
&nbsp; Fmt:
<select id="fmt-sel" class="pure-button" href="#">

@ -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,

@ -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;

Loading…
Cancel
Save