From ecfd231f1587506221612ed9b611b6c7a00f94c9 Mon Sep 17 00:00:00 2001 From: Pete A Date: Fri, 20 Oct 2023 23:31:31 +0100 Subject: [PATCH] reinstate a fix that got lost - 0 is valid sysid that betaflight uses --- app/telemetry/models/fcmavlinksystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/telemetry/models/fcmavlinksystem.cpp b/app/telemetry/models/fcmavlinksystem.cpp index 781e675a3..134768b78 100644 --- a/app/telemetry/models/fcmavlinksystem.cpp +++ b/app/telemetry/models/fcmavlinksystem.cpp @@ -494,7 +494,7 @@ std::optional FCMavlinkSystem::get_fc_sys_id() bool FCMavlinkSystem::set_system_id(int sys_id) { - if(sys_id<=0 || sys_id >= UINT8_MAX){ + if(sys_id<0 || sys_id >= UINT8_MAX){ qWarning()<<"Invalid sys id"; return false; }