Skip to content

Commit

Permalink
Copter: fixed issue with crash check define
Browse files Browse the repository at this point in the history
used in a multiplication, needs parantheses
  • Loading branch information
tridge committed Aug 2, 2024
1 parent dc2e04d commit ab2df43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduCopter/crash_check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Code to detect a crash main ArduCopter code
#if PARACHUTE == ENABLED
// CRASH_CHECK_TRIGGER_SEC should be grater than CHUTE_TIMEOUT, to prevent disarming without deploying parachute
#define CRASH_CHECK_TRIGGER_SEC parachute.get_chute_timeout() + 1.0f
#define CRASH_CHECK_TRIGGER_SEC (parachute.get_chute_timeout() + 1.0)
#else
#define CRASH_CHECK_TRIGGER_SEC 2 // 2 seconds inverted indicates a crash
#endif
Expand Down

0 comments on commit ab2df43

Please sign in to comment.