Q: would this break anything?

A: apparently YES!
This commit is contained in:
Andrey 2022-11-26 17:36:27 -05:00
parent c4cf973705
commit 24c78d2f0b
1 changed files with 14 additions and 0 deletions

View File

@ -140,6 +140,18 @@ const electronic_throttle_s* getLiveDataAddr(size_t) {
return nullptr;
}
#if EFI_UNIT_TEST
FragmentList getLiveDataFragments() {
// todo: would same runtime be optimized into static during firmware build?
FragmentEntry fragments[] = {
// This header is generated - do not edit by hand!
#include "live_data_fragments.h"
};
return { fragments, efi::size(fragments) };
}
#else
static const FragmentEntry fragments[] = {
// This header is generated - do not edit by hand!
#include "live_data_fragments.h"
@ -148,3 +160,5 @@ static const FragmentEntry fragments[] = {
FragmentList getLiveDataFragments() {
return { fragments, efi::size(fragments) };
}
#endif