Skip to content

Commit

Permalink
Merge pull request #19 from raul-ortega/nexgen
Browse files Browse the repository at this point in the history
Nexgen 4.0.2
  • Loading branch information
raul-ortega authored Sep 13, 2019
2 parents 3968119 + 92cfed5 commit 99a0f4d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 34 deletions.
7 changes: 5 additions & 2 deletions js/tabs/cli.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

TABS.cli = {
lineDelayMs: 15,
lineDelayMs: 50,
profileSwitchDelayMs: 100,
outputHistory: "",
cliBuffer: "",
Expand Down Expand Up @@ -319,7 +319,10 @@ TABS.cli.read = function (readInfo) {
};

TABS.cli.sendLine = function (line, callback) {
this.send(line + '\n', callback);
if(line.startsWith('#') || line.length == 0)
callback();
else
this.send(line + '\n', callback);
};

TABS.cli.sendAutoComplete = function (line, callback) {
Expand Down
10 changes: 10 additions & 0 deletions js/tabs/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ TABS.settings.initialize = function (callback) {
GTS.save();
GUI.reboot();
});

$('#nopid_min_delta-spinner').on('change',function(){
var value = $('#nopid_min_delta-spinner').val();
if($.isNumeric(value)){
if(value < 0) value = 0;
if(value > 180) value = 180;
} else
value = 0;
$('#nopid_min_delta-spinner').val(value);
});

GUI.content_ready(callback);

Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
"vendorId": 1155
} ]
}, "webview", "unlimitedStorage" ],
"short_name": "u360gts configurator v4.0.1",
"short_name": "u360gts configurator v4.0.2",
"sockets": {
"tcp": {
"connect": "*:*"
}
},
"update_url": "https://clients2.google.com/service/update2/crx",
"version": "4.0.1",
"version": "4.0.2",
"webview": {
"partitions": [ {
"accessible_resources": [ "tabs/map.html", "/js/tabs/map.js", "/images/icons/tracker-map-icon.png", "/js/libraries/openlayer/css/ol.css", "/js/libraries/openlayer/build/ol.js", "/js/libraries/openlayer/build/ol.js.map" ],
Expand Down
28 changes: 0 additions & 28 deletions package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "u360gts-configurator",
"description": "Crossplatform configuration tool for u360gts flight control system.",
"version": "4.0.1",
"version": "4.0.2",
"bg-script": "js/eventPage.js",
"default_locale": "en",
"main": "main_nwjs.html",
Expand Down
2 changes: 1 addition & 1 deletion tabs/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@

<div class="number">
<label for="nopid_min_delta-spinner" style="left:0;" i18n="settingsNOPIDMinDelta"></label>
<input type="number" id="nopid_min_delta-spinner" name="nopid_min_delta-spinner" value="0" min="0" max="180" style="float:right;margin-right: 0px;" />
<input type="text" id="nopid_min_delta-spinner" name="nopid_min_delta-spinner" value="0" style="float:right;margin-right: 0px;" />
</div>

<div class="number">
Expand Down

0 comments on commit 99a0f4d

Please sign in to comment.