Skip to content

Commit

Permalink
added function to get/set long_controls_allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Jun 5, 2019
1 parent a2f93d4 commit 6ce580a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/safety/libpandasafety_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
void set_controls_allowed(int c);
int get_controls_allowed(void);
void set_long_controls_allowed(int c);
int get_long_controls_allowed(void);
void set_gas_interceptor_detected(int c);
int get_gas_interceptor_detetcted(void);
int get_gas_interceptor_prev(void);
Expand Down
8 changes: 8 additions & 0 deletions tests/safety/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ void set_controls_allowed(int c){
controls_allowed = c;
}

void set_long_controls_allowed(int c){
long_controls_allowed = c;
}

void set_gas_interceptor_detected(int c){
gas_interceptor_detected = c;
}
Expand All @@ -63,6 +67,10 @@ int get_controls_allowed(void){
return controls_allowed;
}

int get_long_controls_allowed(void){
return long_controls_allowed;
}

int get_gas_interceptor_detected(void){
return gas_interceptor_detected;
}
Expand Down

0 comments on commit 6ce580a

Please sign in to comment.