Commit 9ce4ae00 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

dev/eeprom: have to check if sfp section was found in fmc eeprom

parent b9a4bea1
......@@ -199,6 +199,11 @@ int8_t access_eeprom(char *sfp_pn, int32_t *alpha, int32_t *deltaTx, int32_t *de
mprintf("! Warning ! too many SFP entries (%d)\n", sfp_sz);
sfp_sz = SFPINFO_MAX;
else if(sfp_sz == 0)
mprintf("EEPROM: could no find SFP section, staring with defaults\n");
return -1;
mprintf("EEPROM: found SFP section at %d size %d\n", (uint32_t)sfp_adr, (uint32_t)sfp_sz);
if( eeprom_get_sfpinfo(WRPC_FMC_I2C, FMC_EEPROM_ADR, sfp_adr, sfpinfo, sfp_sz))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment