修复:重启后保留 TSOIP 参数
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user