修复:重启后保留 TSOIP 参数

This commit is contained in:
2026-08-28 13:26:23 +08:00
parent fad8784550
commit 47b782e976
2 changed files with 6 additions and 6 deletions
+3 -1
View File
@@ -2401,11 +2401,13 @@ void e2rom_read_tsoip(int tsoip_index, S_TSOIP_CONFIG_PARA *ppara)
log_printf(LOG_DEBUG,I_NOUSED,"TSOIP_%d ppara->receive_type=%s\n", tsoip_index+1, ppara->receive_type==0?"multi":"singl" ); log_printf(LOG_DEBUG,I_NOUSED,"TSOIP_%d ppara->receive_type=%s\n", tsoip_index+1, ppara->receive_type==0?"multi":"singl" );
ppara->fec = (c256_byteread(EEPROM_FEC_ADDR)<<8)|c256_byteread(EEPROM_FEC_ADDR+1); ppara->fec = (c256_byteread(EEPROM_FEC_ADDR)<<8)|c256_byteread(EEPROM_FEC_ADDR+1);
if(ppara->fec >= 1) { if(ppara->fec > 1) {
ppara->fec = 0; ppara->fec = 0;
} }
ppara->delay = (c256_byteread(EEPROM_FEC_DLY_ADDR)<<8)|c256_byteread(EEPROM_FEC_DLY_ADDR+1); ppara->delay = (c256_byteread(EEPROM_FEC_DLY_ADDR)<<8)|c256_byteread(EEPROM_FEC_DLY_ADDR+1);
ppara->row = (c256_byteread(EEPROM_ROW_ADDR)<<8)|c256_byteread(EEPROM_ROW_ADDR+1);
ppara->col = (c256_byteread(EEPROM_COL_ADDR)<<8)|c256_byteread(EEPROM_COL_ADDR+1);
ppara->sfn_mfn_sel = c256_byteread(EEPROM_SFN_MFN_SEL); ppara->sfn_mfn_sel = c256_byteread(EEPROM_SFN_MFN_SEL);
if(ppara->sfn_mfn_sel != NET_SFN && ppara->sfn_mfn_sel != NET_MFN) { if(ppara->sfn_mfn_sel != NET_SFN && ppara->sfn_mfn_sel != NET_MFN) {
ppara->sfn_mfn_sel = NET_SFN; ppara->sfn_mfn_sel = NET_SFN;
+3 -5
View File
@@ -1717,11 +1717,9 @@ void config_fpga_para(void)
fpga_save_all_para(TRUE); fpga_save_all_para(TRUE);
/* TSOIP ---20220214 s ---*/ /* TSOIP settings have already been restored by e2rom_read_all_para().
// PR03: force TSoIP unicast defaults (192.168.2.200/single) onto BOTH cores every boot * Do not load defaults here: that routine also writes the defaults back to
extern void e2rom_load_default_param_t_tsoip(int tsoip_index, uint32 type); * EEPROM and would erase the values set from the web page on every reboot. */
e2rom_load_default_param_t_tsoip(TSOIP_1, 0);
e2rom_load_default_param_t_tsoip(TSOIP_2, 0);
tsoip_byte_write(TSOIP_1, I2C_REG_ADDRES, 0x11); tsoip_byte_write(TSOIP_1, I2C_REG_ADDRES, 0x11);
delay_ms(200);//delay_ms(6000); delay_ms(200);//delay_ms(6000);