Skip to content

Commit

Permalink
commander: remove unnecessary cast for time with unclear operator order
Browse files Browse the repository at this point in the history
  • Loading branch information
MaEtUgR committed Nov 2, 2017
1 parent 2cbb469 commit 61abb5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/commander/commander.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1849,8 +1849,7 @@ int commander_thread_main(int argc, char *argv[])
// After that it will be set in the main state
// machine based on the arming state.
if (param_init_forced) {
auto_disarm_hysteresis.set_hysteresis_time_from(false,
(hrt_abstime)disarm_when_landed * 1000000.f);
auto_disarm_hysteresis.set_hysteresis_time_from(false, disarm_when_landed * 1000000.f);
}

param_get(_param_low_bat_act, &low_bat_action);
Expand Down

0 comments on commit 61abb5b

Please sign in to comment.