1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Code Cleanup

More code cleanup and BUMP EEPROM

Code Cleanup

Fix loop trigger
This commit is contained in:
borisbstyle 2015-09-19 01:19:53 +02:00
parent 70d04e46d0
commit 0501e5ff91
29 changed files with 7377 additions and 81207 deletions

View file

@ -225,9 +225,6 @@ static const char * const boardIdentifier = TARGET_BOARD_IDENTIFIER;
#define MSP_DATAFLASH_READ 71 //out message - get content of dataflash chip
#define MSP_DATAFLASH_ERASE 72 //in message - erase dataflash chip
#define MSP_LOOP_TIME 73 //out message Returns FC cycle time i.e looptime parameter
#define MSP_SET_LOOP_TIME 74 //in message Sets FC cycle time i.e looptime parameter
#define MSP_FAILSAFE_CONFIG 75 //out message Returns FC Fail-Safe settings
#define MSP_SET_FAILSAFE_CONFIG 76 //in message Sets FC Fail-Safe settings
@ -929,10 +926,6 @@ static bool processOutCommand(uint8_t cmdMSP)
serialize8(masterConfig.auto_disarm_delay);
serialize8(masterConfig.disarm_kill_switch);
break;
case MSP_LOOP_TIME:
headSerialReply(2);
serialize16(masterConfig.looptime);
break;
case MSP_RC_TUNING:
headSerialReply(11);
serialize8(currentControlRateProfile->rcRate8);
@ -1350,9 +1343,6 @@ static bool processInCommand(void)
masterConfig.auto_disarm_delay = read8();
masterConfig.disarm_kill_switch = read8();
break;
case MSP_SET_LOOP_TIME:
masterConfig.looptime = read16();
break;
case MSP_SET_PID_CONTROLLER:
currentProfile->pidProfile.pidController = read8();
pidSetController(currentProfile->pidProfile.pidController);