mirror of https://github.com/rusefi/rusefi-1.git
parent
df5b21ceb5
commit
ca0f3ba240
|
@ -473,7 +473,11 @@ void OutputPin::initPin(const char *msg, brain_pin_e brainPin, const pin_output_
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (*outputMode > OM_OPENDRAIN_INVERTED) {
|
if (*outputMode > OM_OPENDRAIN_INVERTED) {
|
||||||
firmwareError(CUSTOM_INVALID_MODE_SETTING, "%s invalid pin_output_mode_e", msg);
|
firmwareError(CUSTOM_INVALID_MODE_SETTING, "%s invalid pin_output_mode_e %d %s",
|
||||||
|
msg,
|
||||||
|
*outputMode,
|
||||||
|
hwPortname(brainPin)
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
iomode_t mode = (*outputMode == OM_DEFAULT || *outputMode == OM_INVERTED) ?
|
iomode_t mode = (*outputMode == OM_DEFAULT || *outputMode == OM_INVERTED) ?
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
|
|
||||||
static LoggingWithStorage logger("pin repos");
|
static LoggingWithStorage logger("pin repos");
|
||||||
|
|
||||||
|
EXTERN_CONFIG;
|
||||||
|
|
||||||
static PinRepository pinRepository;
|
static PinRepository pinRepository;
|
||||||
|
|
||||||
static int brainPin_to_index(brain_pin_e brainPin)
|
static int brainPin_to_index(brain_pin_e brainPin)
|
||||||
|
@ -264,7 +266,11 @@ bool brain_pin_markUsed(brain_pin_e brainPin, const char *msg) {
|
||||||
* connected, so the warning is never displayed on the console and that's quite a problem!
|
* connected, so the warning is never displayed on the console and that's quite a problem!
|
||||||
*/
|
*/
|
||||||
// warning(OBD_PCM_Processor_Fault, "brain pin %d req by %s used by %s", brainPin, msg, getBrainUsedPin(index));
|
// warning(OBD_PCM_Processor_Fault, "brain pin %d req by %s used by %s", brainPin, msg, getBrainUsedPin(index));
|
||||||
firmwareError(CUSTOM_ERR_PIN_ALREADY_USED_1, "Pin \"%s\" required by \"%s\" but is used by \"%s\"", hwPortname(brainPin), msg, getBrainUsedPin(index));
|
firmwareError(CUSTOM_ERR_PIN_ALREADY_USED_1, "Pin \"%s\" required by \"%s\" but is used by \"%s\" %s",
|
||||||
|
hwPortname(brainPin),
|
||||||
|
msg,
|
||||||
|
getBrainUsedPin(index),
|
||||||
|
getEngine_type_e(engineConfiguration->engineType));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue