better code guard?

This commit is contained in:
rusefillc 2023-05-24 11:07:31 -04:00
parent b7076bdaae
commit 4cd21bc35e
2 changed files with 6 additions and 2 deletions

View File

@ -33,6 +33,10 @@
#define EFI_DFU_JUMP TRUE
#endif
#ifndef EFI_BOR_LEVEL
#define EFI_BOR_LEVEL TRUE
#endif
#define EFI_DYNO_VIEW TRUE
#ifndef EFI_CDM_INTEGRATION

View File

@ -361,12 +361,12 @@ void applyNewHardwareSettings() {
adcConfigListener(engine);
}
#if EFI_PROD_CODE
#if EFI_BOR_LEVEL
void setBor(int borValue) {
efiPrintf("setting BOR to %d", borValue);
BOR_Set((BOR_Level_t)borValue);
}
#endif /* EFI_PROD_CODE */
#endif /* EFI_BOR_LEVEL */
// This function initializes hardware that can do so before configuration is loaded
void initHardwareNoConfig() {