Skip to content

Commit 4a75612

Browse files
committed
Opt: fix shift
only:uaefi
1 parent 97b7f00 commit 4a75612

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

firmware/hw_layer/ports/stm32/stm32_opt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void printOptBytes() {
5555
HAL_FLASHEx_OBGetConfig(&obConfig);
5656

5757
if (obConfig.OptionType & OPTIONBYTE_WRP) {
58-
efiPrintf("nWRP = 0x%04lx", obConfig.WRPSector >> 16);
58+
efiPrintf("nWRP = 0x%04lx", obConfig.WRPSector);
5959
}
6060

6161
if (obConfig.OptionType & OPTIONBYTE_RDP) {
@@ -87,7 +87,7 @@ void printOptBytes() {
8787
}
8888

8989
if (obConfig.OptionType & OPTIONBYTE_BOR) {
90-
efiPrintf("BORLevel = 0x%lx", (obConfig.BORLevel >> FLASH_OPTCR_BOR_LEV_Pos) & 0x03);
90+
efiPrintf("BORLevel = 0x%lx", obConfig.BORLevel >> FLASH_OPTCR_BOR_LEV_Pos);
9191
}
9292

9393
#if defined(STM32F7) || defined(STM32H7)

0 commit comments

Comments
 (0)