Merge pull request #202 from vntarasov/volt-gm-id

Dibs on SAFETY_GM numerical value
old-commit-hash: bbc67f8506
commatwo_master
George Hotz 7 years ago committed by GitHub
commit 11929e3b93
  1. 1
      cereal/car.capnp
  2. 4
      selfdrive/boardd/boardd.cc

@ -286,6 +286,7 @@ struct CarParams {
honda @1;
toyota @2;
elm327 @3;
gm @4;
}
# things about the car in the manual

@ -35,6 +35,7 @@
#define SAFETY_HONDA 1
#define SAFETY_TOYOTA 2
#define SAFETY_ELM327 0xE327
#define SAFETY_GM 3
namespace {
@ -95,6 +96,9 @@ void *safety_setter_thread(void *s) {
case (int)cereal::CarParams::SafetyModels::ELM327:
safety_setting = SAFETY_ELM327;
break;
case (int)cereal::CarParams::SafetyModels::GM:
safety_setting = SAFETY_GM;
break;
default:
LOGE("unknown safety model: %d", safety_model);
}

Loading…
Cancel
Save