Skip to content

Commit dbc3568

Browse files
author
Commaremote
committed
removing extra spaces
1 parent 1966bdf commit dbc3568

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

board/safety.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ void update_sample(struct sample_t *sample, int sample_new) {
146146
// real time check, mainly used for steer torque rate limiter
147147
int rt_rate_limit_check(int val, int val_last, const int MAX_RT_DELTA) {
148148

149-
// *** torque real time rate limit check ***
150-
int16_t highest_val = max(val_last, 0) + MAX_RT_DELTA;
151-
int16_t lowest_val = min(val_last, 0) - MAX_RT_DELTA;
149+
// *** torque real time rate limit check ***
150+
int16_t highest_val = max(val_last, 0) + MAX_RT_DELTA;
151+
int16_t lowest_val = min(val_last, 0) - MAX_RT_DELTA;
152152

153-
// return 1 if violation
154-
return (val < lowest_val) || (val > highest_val);
153+
// return 1 if violation
154+
return (val < lowest_val) || (val > highest_val);
155155
}

0 commit comments

Comments
 (0)