code style

This commit is contained in:
rusefillc 2021-01-31 22:02:01 -05:00
parent 73085b3914
commit a411e0d1af
1 changed files with 4 additions and 2 deletions

View File

@ -28,12 +28,14 @@ void efiExtiEnablePin(const char *msg, brain_pin_e brainPin, uint32_t mode, palc
/* paranoid check, in case of GPIO_UNASSIGNED getHwPort will return NULL
* and we will fail on next check */
if (!isBrainPinValid(brainPin))
if (!isBrainPinValid(brainPin)) {
return;
}
ioportid_t port = getHwPort(msg, brainPin);
if (port == NULL)
if (port == NULL) {
return;
}
bool wasUsed = brain_pin_markUsed(brainPin, msg);
if (wasUsed) {