From 991942c73cb5576c88defe097d9a9982d07654fb Mon Sep 17 00:00:00 2001 From: Diego Freitas Date: Tue, 16 Jun 2026 13:59:00 -0300 Subject: [PATCH] ajsute no pinout dos reles coolers --- AgroBase/OperationControl/Models/AppShell.cs | 2 +- AgroBase/OperationControl/Services/GpsService.cs | 2 +- .../Sensoriamento/Sensoriamento_v23/Sensoriamento_v23.ino | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AgroBase/OperationControl/Models/AppShell.cs b/AgroBase/OperationControl/Models/AppShell.cs index 44e848c6b..6753624c8 100644 --- a/AgroBase/OperationControl/Models/AppShell.cs +++ b/AgroBase/OperationControl/Models/AppShell.cs @@ -229,7 +229,7 @@ namespace OperationControl.Models if (Mock && AddRover) { - System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action(() => + System.Windows.Application.Current?.Dispatcher?.BeginInvoke(new Action(() => { Variaveis.Dock?._vm?.AtualizarDadosTela(VariaveisControleOperacao.RoverEmFoco); })); diff --git a/AgroBase/OperationControl/Services/GpsService.cs b/AgroBase/OperationControl/Services/GpsService.cs index e707d3f31..0f2fb7bfd 100644 --- a/AgroBase/OperationControl/Services/GpsService.cs +++ b/AgroBase/OperationControl/Services/GpsService.cs @@ -1243,7 +1243,7 @@ namespace OperationControl.Services UltimaLeitura.Heartbeat = (UltimaLeitura.Heartbeat + 1) % 10; // Daqui pra baixo: jogar pra UI - Application.Current.Dispatcher.BeginInvoke(new Action(() => + Application.Current?.Dispatcher?.BeginInvoke(new Action(() => { try { diff --git a/Firmware/Sensoriamento/Sensoriamento_v23/Sensoriamento_v23.ino b/Firmware/Sensoriamento/Sensoriamento_v23/Sensoriamento_v23.ino index 782c06591..624e6f6c9 100644 --- a/Firmware/Sensoriamento/Sensoriamento_v23/Sensoriamento_v23.ino +++ b/Firmware/Sensoriamento/Sensoriamento_v23/Sensoriamento_v23.ino @@ -75,8 +75,8 @@ ServoAgro_v3* ObterServoPorId(uint8_t idNum) { #pragma endregion #pragma region RELES -Rele_v2 sRLE_CoolerIn("RLCIN", 81, true, 13, TiposBarramentos::CONTROLADOR); -Rele_v2 sRLE_CoolerOut("RLCOUT", 82, true, 14, TiposBarramentos::CONTROLADOR); +Rele_v2 sRLE_CoolerIn("RLCIN", 81, false, 19, TiposBarramentos::CONTROLADOR); +Rele_v2 sRLE_CoolerOut("RLCOUT", 82, false, 20, TiposBarramentos::CONTROLADOR); Rele_v2* ObterRelePorId(uint8_t idNum) { switch (idNum) {