reduce flash footprint by smarter code generation #4163

This commit is contained in:
rusefillc 2022-12-04 01:21:38 -05:00
parent 03fa461ac8
commit 764c064656
2 changed files with 3 additions and 6 deletions

View File

@ -38,8 +38,6 @@ T* findPair(const char *name, T array[TCount], size_t count) {
return nullptr;
}
plain_get_float_s * findFloat(const char *name);
float getConfigValueByName(const char *name);
void setConfigValueByName(const char *name, float value);
float getOutputValueByName(const char *name);

View File

@ -844,10 +844,9 @@ static void getValue(const char *paramStr) {
}
{
plain_get_float_s * known = findFloat(paramStr);
if (known != nullptr) {
float value = *known->value;
efiPrintf("%s value: %.2f", known->token, value);
float value = getConfigValueByName(paramStr);
if (value != EFI_ERROR_CODE) {
efiPrintf("%s value: %.2f", paramStr, value);
return;
}
}