From dbc3568a1bbcacc23d0dfa31302a5b421f6d4a69 Mon Sep 17 00:00:00 2001 From: Commaremote <31535535+commaremote@user.noreply.github.com> Date: Wed, 13 Jun 2018 00:57:36 -0700 Subject: [PATCH] removing extra spaces --- board/safety.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/board/safety.h b/board/safety.h index cd34895544ea0c..1b53379d8e8322 100644 --- a/board/safety.h +++ b/board/safety.h @@ -146,10 +146,10 @@ void update_sample(struct sample_t *sample, int sample_new) { // real time check, mainly used for steer torque rate limiter int rt_rate_limit_check(int val, int val_last, const int MAX_RT_DELTA) { - // *** torque real time rate limit check *** - int16_t highest_val = max(val_last, 0) + MAX_RT_DELTA; - int16_t lowest_val = min(val_last, 0) - MAX_RT_DELTA; + // *** torque real time rate limit check *** + int16_t highest_val = max(val_last, 0) + MAX_RT_DELTA; + int16_t lowest_val = min(val_last, 0) - MAX_RT_DELTA; - // return 1 if violation - return (val < lowest_val) || (val > highest_val); + // return 1 if violation + return (val < lowest_val) || (val > highest_val); }