mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 12:25:13 +03:00
Allow default baud rates on ports page
This PR allows default baud rates to be set, per function, on the ports page. For example, SmartPort should run at 57600 baud. But, when the option is selected currently, the baud rate stays at 115200. This PR corrects that.
This commit is contained in:
parent
3843582887
commit
f0c593859c
4 changed files with 65 additions and 36 deletions
|
@ -807,7 +807,7 @@ var mspHelper = (function (gui) {
|
|||
msp_baudrate: BAUD_RATES[data.getUint8(offset + 5)],
|
||||
sensors_baudrate: BAUD_RATES[data.getUint8(offset + 6)],
|
||||
telemetry_baudrate: BAUD_RATES[data.getUint8(offset + 7)],
|
||||
blackbox_baudrate: BAUD_RATES[data.getUint8(offset + 8)]
|
||||
peripherals_baudrate: BAUD_RATES[data.getUint8(offset + 8)]
|
||||
};
|
||||
|
||||
offset += bytesPerPort;
|
||||
|
@ -1782,7 +1782,7 @@ var mspHelper = (function (gui) {
|
|||
buffer.push(BAUD_RATES.indexOf(serialPort.msp_baudrate));
|
||||
buffer.push(BAUD_RATES.indexOf(serialPort.sensors_baudrate));
|
||||
buffer.push(BAUD_RATES.indexOf(serialPort.telemetry_baudrate));
|
||||
buffer.push(BAUD_RATES.indexOf(serialPort.blackbox_baudrate));
|
||||
buffer.push(BAUD_RATES.indexOf(serialPort.peripherals_baudrate));
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue