mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
GUI to use hard lock queue name Wireless mode
This commit is contained in:
parent
a439456ab9
commit
9569c0b5ee
4 changed files with 358 additions and 274 deletions
|
@ -7,6 +7,19 @@ $(document).ready(function () {
|
|||
$baud = $('#baud'),
|
||||
$portOverride = $('#port-override');
|
||||
|
||||
/*
|
||||
* Handle "Wireless" mode with strict queueing of messages
|
||||
*/
|
||||
$('#wireless-mode').change(function () {
|
||||
var $this = $(this);
|
||||
|
||||
if ($this.is(':checked')) {
|
||||
helper.mspQueue.setLockMethod('hard');
|
||||
} else {
|
||||
helper.mspQueue.setLockMethod('soft');
|
||||
}
|
||||
});
|
||||
|
||||
GUI.handleReconnect = function ($tabElement) {
|
||||
|
||||
if (BOARD.find_board_definition(CONFIG.boardIdentifier).vcp) { // VCP-based flight controls may crash old drivers, we catch and reconnect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue