Skip to content

Commit

Permalink
Merge pull request #712 from bitcraze/toverumar/fix_bool_issue
Browse files Browse the repository at this point in the history
FlightTab: Assisted flight fix
  • Loading branch information
knmcguire committed Apr 25, 2024
2 parents 3c67d0c + 771f440 commit ac99b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cfclient/ui/tabs/FlightTab.py
Expand Up @@ -715,7 +715,7 @@ def _assisted_control_updated(self, enabled):
self.targetHeight.setEnabled(enabled)
print('Chaning enable for target height: %s' % enabled)
else:
self._helper.cf.param.set_value("flightmode.althold", str(enabled))
self._helper.cf.param.set_value("flightmode.althold", int(enabled))

def alt1_updated(self, state):
if state:
Expand Down

0 comments on commit ac99b9e

Please sign in to comment.