From 3ff0d36b9c0ffca8b41ee06ec129ff54a7537ba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Tue, 11 Jun 2024 10:57:08 -0300 Subject: [PATCH] sensor: ping: Request DEVICE_INFORMATION if not initialized MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/sensor/ping.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sensor/ping.cpp b/src/sensor/ping.cpp index 659b2e097..d7fc791c5 100644 --- a/src/sensor/ping.cpp +++ b/src/sensor/ping.cpp @@ -61,6 +61,10 @@ Ping::Ping() } emit lostMessagesChanged(); + if (!_commonVariables.deviceInformation.initialized) { + request(CommonId::DEVICE_INFORMATION); + } + request(Ping1dId::PCB_TEMPERATURE); request(Ping1dId::PROCESSOR_TEMPERATURE); request(Ping1dId::VOLTAGE_5);