libpandasafety: make HW_TYPE optional
@@ -186,7 +186,9 @@ void set_honda_fwd_brake(bool c){
void init_tests(void){
// get HW_TYPE from env variable set in test.sh
+ if (getenv("HW_TYPE")) {
hw_type = atoi(getenv("HW_TYPE"));
+ }
safety_mode_cnt = 2U; // avoid ignoring relay_malfunction logic
unsafe_mode = 0;
set_timer(0);
