1
0
Fork 0
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:
Pawel Spychalski (DzikuVx) 2017-01-22 12:25:30 +01:00
parent a439456ab9
commit 9569c0b5ee
4 changed files with 358 additions and 274 deletions

View file

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