-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
100 changed files
with
9,646 additions
and
3,696 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,37 @@ | ||
module.exports = { | ||
packagerConfig: { | ||
asar: true, | ||
asar: false, | ||
icon: 'images/inav' | ||
}, | ||
rebuildConfig: {}, | ||
makers: [ | ||
/* | ||
{ | ||
name: '@electron-forge/maker-squirrel', | ||
config: {}, | ||
config: { | ||
iconUrl: "https://raw.githubusercontent.com/iNavFlight/inav-configurator/master/images/inav.ico", | ||
loadingGif: "images/inav-installing.gif" | ||
}, | ||
}, | ||
*/ | ||
|
||
{ | ||
name: '@electron-forge/maker-zip', | ||
platforms: ['win32', 'darwin'], | ||
}, | ||
{ | ||
name: '@electron-forge/maker-deb', | ||
config: {}, | ||
config: { | ||
options: { | ||
icon: "images/inav_icon_128.png" | ||
} | ||
}, | ||
}, | ||
{ | ||
name: '@electron-forge/maker-rpm', | ||
config: {}, | ||
}, | ||
], | ||
plugins: [ | ||
{ | ||
name: '@electron-forge/plugin-auto-unpack-natives', | ||
config: {}, | ||
config: { | ||
options: { | ||
icon: "images/inav_icon_128.png" | ||
} | ||
}, | ||
}, | ||
], | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -552,3 +552,5 @@ CliAutoComplete._initTextcomplete = function() { | |
}), | ||
]); | ||
}; | ||
|
||
module.exports = CliAutoComplete; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use strict' | ||
|
||
var BitHelper = function() { | ||
|
||
var self = {}; | ||
|
||
self.highByte = function (num) { | ||
return num >> 8; | ||
} | ||
|
||
self.lowByte = function (num) { | ||
return 0x00FF & num; | ||
} | ||
|
||
self.specificByte = function (num, pos) { | ||
return 0x000000FF & (num >> (8 * pos)); | ||
} | ||
|
||
self.bit_check = function (num, bit) { | ||
return ((num >> bit) % 2 != 0); | ||
} | ||
|
||
self.bit_set = function (num, bit) { | ||
return num | 1 << bit; | ||
} | ||
|
||
self.bit_clear = function(num, bit) { | ||
return num & ~(1 << bit); | ||
} | ||
|
||
return self; | ||
}(); | ||
|
||
module.exports = BitHelper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,6 @@ BOARD.findDefinition = function (identifier) { | |
} | ||
return DEFAULT_BOARD_DEFINITION; | ||
}; | ||
|
||
module.exports = BOARD; | ||
|
Oops, something went wrong.