Skip to content

Commit

Permalink
Merge pull request #601 from OpenHD/fix_betaflight
Browse files Browse the repository at this point in the history
reinstate a fix that got lost - 0 is valid sysid that betaflight uses
  • Loading branch information
peteallenm authored Oct 20, 2023
2 parents 199ca0e + ecfd231 commit d055b81
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 d055b81

Please sign in to comment.