Fix TXEN / RXEN pin init for SX1280

This commit is contained in:
jacob.eva 2024-05-05 17:16:09 +01:00
parent 29e8406437
commit c2e7c7070b
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -361,6 +361,14 @@ int sx128x::begin(unsigned long frequency)
delay(10); delay(10);
} }
if (_rxen != -1) {
pinMode(_rxen, OUTPUT);
}
if (_txen != -1) {
pinMode(_txen, OUTPUT);
}
if (_busy != -1) { if (_busy != -1) {
pinMode(_busy, INPUT); pinMode(_busy, INPUT);
} }