diff --git a/AgroBase/AgroBase/Forms/IHM/frmAjustes.cs b/AgroBase/AgroBase/Forms/IHM/frmAjustes.cs index 02e2f3ee3..0894aee64 100644 --- a/AgroBase/AgroBase/Forms/IHM/frmAjustes.cs +++ b/AgroBase/AgroBase/Forms/IHM/frmAjustes.cs @@ -460,9 +460,10 @@ namespace AgroBase.Forms.IHM private async void SalvarParametrosConfiguracao() { string _interface = cmbInterface.Text.Split('(')[0].Trim(); + string _ipInterface = EthernetService.ObterIpAtual(_interface); var p = VariaveisEquipamento.Parametros; - bool ip_mudou = p.rover_ip != txtEquipamentoIP.Text || p.rover_gateway != txtEquipamentoGateway.Text || p.rover_submask != txtEquipamentoSubmask.Text; + bool ip_mudou = p.rover_ip != txtEquipamentoIP.Text || p.rover_gateway != txtEquipamentoGateway.Text || p.rover_submask != txtEquipamentoSubmask.Text || p.rover_ip != _ipInterface; bool ip_sucesso = !ip_mudou; p.base_ip = txtBaseIP.Text; p.base_porta_caminho = (int)nudPortaCaminho.Value;