[CC1101] Fixed direction from HAL
This commit is contained in:
parent
291251ea72
commit
a21fb9f136
1 changed files with 2 additions and 2 deletions
|
@ -240,7 +240,7 @@ void CC1101::clearGdo0Action() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CC1101::setPacketReceivedAction(void (*func)(void)) {
|
void CC1101::setPacketReceivedAction(void (*func)(void)) {
|
||||||
this->setGdo0Action(func, RISING);
|
this->setGdo0Action(func, this->mod->hal->GpioInterruptRising);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CC1101::clearPacketReceivedAction() {
|
void CC1101::clearPacketReceivedAction() {
|
||||||
|
@ -248,7 +248,7 @@ void CC1101::clearPacketReceivedAction() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CC1101::setPacketSentAction(void (*func)(void)) {
|
void CC1101::setPacketSentAction(void (*func)(void)) {
|
||||||
this->setGdo2Action(func, FALLING);
|
this->setGdo2Action(func, this->mod->hal->GpioInterruptFalling);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CC1101::clearPacketSentAction() {
|
void CC1101::clearPacketSentAction() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue