Skip to content

Commit

Permalink
AP_Torqeedo: correct compilation with HAL_GCS_ENABLED is false
Browse files Browse the repository at this point in the history
removes a larger block to avoid warnings about unused variables
  • Loading branch information
peterbarker committed Mar 7, 2024
1 parent 21ca4f8 commit 5caf8f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_Torqeedo/AP_Torqeedo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,7 @@ void AP_Torqeedo::log_TRQD(bool force_logging)
}
_last_log_TRQD_ms = now_ms;

#if HAL_LOGGING_ENABLED || HAL_GCS_ENABLED
const bool health = healthy();
int16_t actual_motor_speed = get_motor_speed_limited();

Expand Down Expand Up @@ -1121,6 +1122,7 @@ void AP_Torqeedo::log_TRQD(bool force_logging)
(unsigned long)_parse_success_count,
(unsigned long)_parse_error_count);
}
#endif // HAL_LOGGING_ENABLED || HAL_GCS_ENABLED
}

// send ESC telemetry
Expand Down

0 comments on commit 5caf8f8

Please sign in to comment.