1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +03:00

Add MSP_BUILDINFO.

This commit is contained in:
Dominic Clifton 2014-12-20 02:57:02 +00:00
parent df61d9a7eb
commit ec5929d278

View file

@ -214,7 +214,7 @@ const char *boardIdentifier = TARGET_BOARD_IDENTIFIER;
#define MSP_REBOOT 68 //in message reboot settings
// DEPRECATED - Use MSP_API_VERSION instead
//#define MSP_BUILD_INFO 69 //out message build date as well as some space for future expansion
#define MSP_BUILD_INFO 69 //out message build date as well as some space for future expansion
//
// Multwii original MSP commands
@ -1078,6 +1078,13 @@ static bool processOutCommand(uint8_t cmdMSP)
}
break;
#endif
case MSP_BUILD_INFO:
headSerialReply(11 + 4 + 4);
for (i = 0; i < 11; i++)
serialize8(buildDate[i]); // MMM DD YYYY as ascii, MMM = Jan/Feb... etc
serialize32(0); // future exp
serialize32(0); // future exp
break;
default:
return false;