refactoring: inlining method
This commit is contained in:
parent
c552c4800b
commit
45941bd99d
|
@ -228,7 +228,9 @@ void OutputPin::unregisterOutput(brain_pin_e oldPin, brain_pin_e newPin) {
|
|||
if (oldPin != GPIO_UNASSIGNED && oldPin != newPin) {
|
||||
scheduleMsg(logger, "unregistering %s", hwPortname(oldPin));
|
||||
unmarkPin(oldPin);
|
||||
unregister();
|
||||
#if EFI_GPIO_HARDWARE || defined(__DOXYGEN__)
|
||||
port = NULL;
|
||||
#endif /* EFI_PROD_CODE */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -295,12 +295,6 @@ bool OutputPin::getLogicValue() {
|
|||
return currentLogicValue;
|
||||
}
|
||||
|
||||
void OutputPin::unregister() {
|
||||
#if EFI_GPIO_HARDWARE || defined(__DOXYGEN__)
|
||||
port = NULL;
|
||||
#endif /* EFI_PROD_CODE */
|
||||
}
|
||||
|
||||
void OutputPin::setDefaultPinState(pin_output_mode_e *outputMode) {
|
||||
pin_output_mode_e mode = *outputMode;
|
||||
assertOMode(mode);
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
void setValue(int logicValue);
|
||||
void setDefaultPinState(pin_output_mode_e *defaultState);
|
||||
bool getLogicValue();
|
||||
void unregister();
|
||||
|
||||
bool isPinAssigned();
|
||||
void initPin(const char *msg, brain_pin_e brainPin);
|
||||
void initPin(const char *msg, brain_pin_e brainPin, pin_output_mode_e *outputMode);
|
||||
|
|
Loading…
Reference in New Issue