mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-14 20:10:11 +03:00
Drop MSP_IDENT
This commit is contained in:
parent
051e9fa00e
commit
d6a5992d97
2 changed files with 1 additions and 20 deletions
|
@ -50,8 +50,6 @@ var MSPCodes = {
|
|||
MSP_CF_SERIAL_CONFIG: 54,
|
||||
MSP_SET_CF_SERIAL_CONFIG: 55,
|
||||
MSP_SONAR: 58,
|
||||
MSP_PID_CONTROLLER: 59,
|
||||
MSP_SET_PID_CONTROLLER: 60,
|
||||
MSP_ARMING_CONFIG: 61,
|
||||
MSP_SET_ARMING_CONFIG: 62,
|
||||
MSP_DATAFLASH_SUMMARY: 70,
|
||||
|
@ -158,7 +156,7 @@ var MSPCodes = {
|
|||
MSP_BF_CONFIG: 66, // Depreciated
|
||||
MSP_SET_BF_CONFIG: 67, // Depreciated
|
||||
MSP_SET_REBOOT: 68, // reboot settings
|
||||
MSP_BF_BUILD_INFO: 69, // build date as well as some space for future expansion
|
||||
MSP_BF_BUILD_INFO: 69, // Depreciated
|
||||
|
||||
// INAV specific codes
|
||||
MSPV2_SETTING: 0x1003,
|
||||
|
|
|
@ -68,15 +68,6 @@ var mspHelper = (function (gui) {
|
|||
colorCount,
|
||||
color;
|
||||
if (!dataHandler.unsupported || dataHandler.unsupported) switch (dataHandler.code) {
|
||||
case MSPCodes.MSP_IDENT:
|
||||
//FIXME remove this frame when proven not needed
|
||||
console.log('Using deprecated msp command: MSP_IDENT');
|
||||
// Deprecated
|
||||
CONFIG.version = parseFloat((data.getUint8(0) / 100).toFixed(2));
|
||||
CONFIG.multiType = data.getUint8(1);
|
||||
CONFIG.msp_version = data.getUint8(2);
|
||||
CONFIG.capability = data.getUint32(3, true);
|
||||
break;
|
||||
case MSPCodes.MSP_STATUS:
|
||||
console.log('Using deprecated msp command: MSP_STATUS');
|
||||
CONFIG.cycleTime = data.getUint16(0, true);
|
||||
|
@ -2737,14 +2728,6 @@ var mspHelper = (function (gui) {
|
|||
* Basic sending methods used for chaining purposes
|
||||
*/
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @param callback
|
||||
*/
|
||||
self.loadMspIdent = function (callback) {
|
||||
MSP.send_message(MSPCodes.MSP_IDENT, false, false, callback);
|
||||
};
|
||||
|
||||
self.loadINAVPidConfig = function (callback) {
|
||||
MSP.send_message(MSPCodes.MSP_INAV_PID, false, false, callback);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue