Skip to content

Commit

Permalink
reinstate a fix that got lost - 0 is valid sysid that betaflight uses
Browse files Browse the repository at this point in the history
  • Loading branch information
peteallenm committed Oct 20, 2023
1 parent 199ca0e commit ecfd231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/telemetry/models/fcmavlinksystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ std::optional<uint8_t> 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;
}
Expand Down

0 comments on commit ecfd231

Please sign in to comment.