OBD CAN sensors #1733
This commit is contained in:
parent
f2a80a4eb7
commit
d72ba63527
|
@ -85,7 +85,9 @@ bool Sensor::Register() {
|
|||
// If there's somebody already here - a consumer tried to double-register a sensor
|
||||
if (entry.getSensor()) {
|
||||
// This sensor has already been registered. Don't re-register it.
|
||||
#if ! EFI_UNIT_TEST
|
||||
firmwareError(CUSTOM_OBD_26, "Duplicate registration for %s sensor", s_sensorNames[getIndex()]);
|
||||
#endif
|
||||
return false;
|
||||
} else {
|
||||
// put ourselves in the registry
|
||||
|
|
Loading…
Reference in New Issue