Fix TXEN / RXEN pin init for SX1280
This commit is contained in:
parent
29e8406437
commit
c2e7c7070b
@ -361,6 +361,14 @@ int sx128x::begin(unsigned long frequency)
|
||||
delay(10);
|
||||
}
|
||||
|
||||
if (_rxen != -1) {
|
||||
pinMode(_rxen, OUTPUT);
|
||||
}
|
||||
|
||||
if (_txen != -1) {
|
||||
pinMode(_txen, OUTPUT);
|
||||
}
|
||||
|
||||
if (_busy != -1) {
|
||||
pinMode(_busy, INPUT);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user