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

Added MCU id / name for STM32G474.

This commit is contained in:
mikeller 2021-04-27 01:37:33 +12:00
parent 87955d9734
commit 687c7014c0
3 changed files with 5 additions and 1 deletions

View file

@ -308,6 +308,7 @@ static const char *mcuTypeNames[] = {
"H743 (Rev.V)",
"H7A3",
"H723/H725",
"G474",
};
static const char *configurationStates[] = { "UNCONFIGURED", "CUSTOM DEFAULTS", "CONFIGURED" };
@ -4664,7 +4665,7 @@ STATIC_UNIT_TESTED void cliSet(const char *cmdName, char *cmdline)
}
}
const char *getMcuTypeById(mcuTypeId_e id)
static const char *getMcuTypeById(mcuTypeId_e id)
{
if (id < MCU_TYPE_UNKNOWN) {
return mcuTypeNames[id];