Fix SX1280 RXEN and TXEN issue

This commit is contained in:
jacob.eva 2024-05-07 12:26:38 +01:00
parent 5df60b11d8
commit d0283ac0b5
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -363,6 +363,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);
} }