From da47c17fd6dba105bff45ac4b09a460e272cbf46 Mon Sep 17 00:00:00 2001 From: Oleksandr Vynnyk Date: Fri, 7 Aug 2026 10:37:24 +0300 Subject: [PATCH] fix(VTX): ignore temperature data if not available for tramp protocol --- src/drivers/vtx/VTX.cpp | 2 +- src/drivers/vtx/tramp.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/drivers/vtx/VTX.cpp b/src/drivers/vtx/VTX.cpp index 061912a7f5e..fa69be81824 100644 --- a/src/drivers/vtx/VTX.cpp +++ b/src/drivers/vtx/VTX.cpp @@ -437,7 +437,7 @@ int VTX::print_status() PX4_INFO(" pit mode: %s", _pit_mode ? "on" : "off"); if (!(_comms_ok && _protocol && _protocol->print_settings())) { - PX4_ERR("%s device not found", _param_vtx_device.get() == 1 ? "Tramp" : "SmartAudio"); + PX4_ERR("%s device not found", (_param_vtx_device.get() & 0xff) == vtx_s::PROTOCOL_TRAMP ? "Tramp" : "SmartAudio"); } perf_print_counter(_perf_cycle); diff --git a/src/drivers/vtx/tramp.cpp b/src/drivers/vtx/tramp.cpp index b841777d7f8..0c8ca766545 100644 --- a/src/drivers/vtx/tramp.cpp +++ b/src/drivers/vtx/tramp.cpp @@ -50,7 +50,9 @@ int Tramp::get_settings() if (rv != 0) { return rv; } px4_usleep(30_ms); - return get_temperature(); + int temperature_data = get_temperature(); + // ignore temperature data if not available + return temperature_data == -ETIMEDOUT ? 0 : temperature_data; }