1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

MSP_SET_NAME

This commit is contained in:
KiteAnton 2016-07-13 23:29:51 +02:00
parent 1e4a0c72fc
commit c04e6a4bd7
3 changed files with 10 additions and 0 deletions

View file

@ -1875,6 +1875,12 @@ static bool processInCommand(void)
masterConfig.baro_hardware = read8();
masterConfig.mag_hardware = read8();
break;
case MSP_SET_NAME:
for (i = 0; i < MAX_NAME_LENGTH; i++) {
masterConfig.name[i] = read8();
}
break;
default:
// we do not know how to handle the (valid) message, indicate error MSP $M!
return false;