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

Dibs on SAFETY_GM numerical value
This commit is contained in:
George Hotz
2018-02-27 22:58:02 -08:00
committed by GitHub
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -286,6 +286,7 @@ struct CarParams {
honda @1;
toyota @2;
elm327 @3;
gm @4;
}
# things about the car in the manual
+4
View File
@@ -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);
}