dron0gus please help
This commit is contained in:
parent
aaad4d758c
commit
9c12c4dd44
|
@ -122,7 +122,10 @@ int getPortPinIndex(ioportid_t port, ioportmask_t pin) {
|
|||
|
||||
ioportid_t getHwPort(const char *msg, brain_pin_e brainPin) {
|
||||
if (!isBrainPinValid(brainPin)) {
|
||||
/*
|
||||
* https://github.com/dron0gus please help
|
||||
firmwareError(CUSTOM_ERR_INVALID_PIN, "%s: Invalid brain_pin_e: %d", msg, brainPin);
|
||||
*/
|
||||
return GPIO_NULL;
|
||||
}
|
||||
return ports[(brainPin - GPIOA_0) / PORT_SIZE];
|
||||
|
|
Loading…
Reference in New Issue