1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 01:05:21 +03:00

fix typo and bug in servo logging

This commit is contained in:
Jonathan Hudson 2024-08-14 13:19:30 +01:00
parent f97a1020cc
commit 376346d8f7
2 changed files with 3 additions and 3 deletions

View file

@ -712,7 +712,7 @@ static bool testBlackboxConditionUncached(FlightLogFieldCondition condition)
case FLIGHT_LOG_FIELD_CONDITION_AT_LEAST_SERVOS_33:
case FLIGHT_LOG_FIELD_CONDITION_AT_LEAST_SERVOS_34:
*/
return ((FlightLogFieldCondition)MIN(getServoCount(), 26) >= condition - FLIGHT_LOG_FIELD_CONDITION_AT_LEAST_SERVOS_1 + 1) && blackboxIncludeFlag(BLACKBOX_FEATURE_SERVOS);
return ((FlightLogFieldCondition)getServoCount() >= condition - FLIGHT_LOG_FIELD_CONDITION_AT_LEAST_SERVOS_1 + 1) && blackboxIncludeFlag(BLACKBOX_FEATURE_SERVOS);
case FLIGHT_LOG_FIELD_CONDITION_NONZERO_PID_D_0:
case FLIGHT_LOG_FIELD_CONDITION_NONZERO_PID_D_1:

View file

@ -48,13 +48,13 @@ typedef enum {
* We want to limit how bursty our writes to the device are. Note that this will also restrict the maximum size of a
* header write we can make:
*/
#define BLACKBOX_MAX_ACCUMULATED_HEADER_BUDGET 512
#define BLACKBOX_MAX_ACCUMULATED_HEADER_BUDGET 256
/*
* Ideally, each iteration in which we are logging headers would write a similar amount of data to the device as a
* regular logging iteration. This way we won't hog the CPU by making a gigantic write:
*/
#define BLACKBOX_TARGET_HEADER_BUDGET_PER_ITERATION 128
#define BLACKBOX_TARGET_HEADER_BUDGET_PER_ITERATION 64
extern int32_t blackboxHeaderBudget;