function >>> macro
(cherry picked from commit 489d016682d1c3eb4eb707cd1686686e40175dcd)
This commit is contained in:
parent
3d3873235b
commit
d488ed5858
|
@ -60,11 +60,10 @@ static void fireSparkBySettingPinLow(IgnitionEvent *event, IgnitionOutputPin *ou
|
||||||
output->setLow();
|
output->setLow();
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo: make this a class method?
|
static void assertPinAssigned(IgnitionOutputPin* output) {
|
||||||
#define assertPinAssigned(output) { \
|
if (!output->isInitialized()) {
|
||||||
if (!output->isInitialized()) { \
|
warning(CUSTOM_OBD_COIL_PIN_NOT_ASSIGNED, "Pin Not Assigned check configuration #%s", output->getName()); \
|
||||||
warning(CUSTOM_OBD_COIL_PIN_NOT_ASSIGNED, "Pin Not Assigned check configuration #%s", (output)->getName()); \
|
}
|
||||||
} \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue