mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Add MSP_BUILDINFO.
This commit is contained in:
parent
df61d9a7eb
commit
ec5929d278
1 changed files with 8 additions and 1 deletions
|
@ -214,7 +214,7 @@ const char *boardIdentifier = TARGET_BOARD_IDENTIFIER;
|
||||||
#define MSP_REBOOT 68 //in message reboot settings
|
#define MSP_REBOOT 68 //in message reboot settings
|
||||||
|
|
||||||
// DEPRECATED - Use MSP_API_VERSION instead
|
// 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
|
// Multwii original MSP commands
|
||||||
|
@ -1078,6 +1078,13 @@ static bool processOutCommand(uint8_t cmdMSP)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#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:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue