Skip to content

Commit 14468b6

Browse files
authored
Fix Bonnet compatibility (#16)
1 parent 3a4c1d5 commit 14468b6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/EepromManager.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -495,20 +495,21 @@ void EepromManager::Hal_EfuseReadEFuse8812A(uint16_t _offset,
495495
eFuse_Addr);
496496
}
497497

498-
#define EEPROM_TX_PWR_INX_8812 0x10
498+
#define EEPROM_TX_PWR_INX_8812 0x20
499499

500500
bool EepromManager::IsEfuseTxPowerInfoValid(uint8_t *efuseEepromData) {
501-
// Just because single chip support
502501
uint16_t tx_index_offset = EEPROM_TX_PWR_INX_8812;
502+
bool found= false;
503503
for (int index = 0; index < 11; index++) {
504-
if (efuseEepromData[tx_index_offset + index] == 0xFF) {
505-
return false;
504+
if (efuseEepromData[tx_index_offset + index] != 0xFF) {
505+
found = true;
506506
}
507507
}
508508

509-
return true;
509+
return found;
510510
}
511511

512+
512513
void EepromManager::rtw_dump_cur_efuse() {
513514
#if 0
514515
#endif

0 commit comments

Comments
 (0)