We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97b7f00 commit 4a75612Copy full SHA for 4a75612
1 file changed
firmware/hw_layer/ports/stm32/stm32_opt.cpp
@@ -55,7 +55,7 @@ void printOptBytes() {
55
HAL_FLASHEx_OBGetConfig(&obConfig);
56
57
if (obConfig.OptionType & OPTIONBYTE_WRP) {
58
- efiPrintf("nWRP = 0x%04lx", obConfig.WRPSector >> 16);
+ efiPrintf("nWRP = 0x%04lx", obConfig.WRPSector);
59
}
60
61
if (obConfig.OptionType & OPTIONBYTE_RDP) {
@@ -87,7 +87,7 @@ void printOptBytes() {
87
88
89
if (obConfig.OptionType & OPTIONBYTE_BOR) {
90
- efiPrintf("BORLevel = 0x%lx", (obConfig.BORLevel >> FLASH_OPTCR_BOR_LEV_Pos) & 0x03);
+ efiPrintf("BORLevel = 0x%lx", obConfig.BORLevel >> FLASH_OPTCR_BOR_LEV_Pos);
91
92
93
#if defined(STM32F7) || defined(STM32H7)
0 commit comments