[RF69] Fixed inverted check (#167)
This commit is contained in:
parent
8d92a5f402
commit
9432e3d1c3
1 changed files with 2 additions and 2 deletions
|
@ -275,7 +275,7 @@ void RF69::clearDio0Action() {
|
|||
}
|
||||
|
||||
void RF69::setDio1Action(void (*func)(void)) {
|
||||
if(_mod->getGpio() != RADIOLIB_NC) {
|
||||
if(_mod->getGpio() == RADIOLIB_NC) {
|
||||
return;
|
||||
}
|
||||
Module::pinMode(_mod->getGpio(), INPUT);
|
||||
|
@ -283,7 +283,7 @@ void RF69::setDio1Action(void (*func)(void)) {
|
|||
}
|
||||
|
||||
void RF69::clearDio1Action() {
|
||||
if(_mod->getGpio() != RADIOLIB_NC) {
|
||||
if(_mod->getGpio() == RADIOLIB_NC) {
|
||||
return;
|
||||
}
|
||||
detachInterrupt(RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(_mod->getGpio()));
|
||||
|
|
Loading…
Add table
Reference in a new issue