Skip to content

Commit e646f34

Browse files
author
Daniel Jäckle
committed
Issue(#68): Fix for low level RF switch control.
1 parent 8ffbd6d commit e646f34

File tree

5 files changed

+0
-23
lines changed

5 files changed

+0
-23
lines changed

src/boards/LoRaMote/sx1272-board.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,6 @@ void SX1272AntSwDeInit( void )
126126

127127
void SX1272SetAntSw( uint8_t rxTx )
128128
{
129-
if( SX1272.RxTx == rxTx )
130-
{
131-
return;
132-
}
133-
134-
SX1272.RxTx = rxTx;
135-
136129
if( rxTx != 0 ) // 1: TX, 0: RX
137130
{
138131
GpioWrite( &AntRx, 0 );

src/boards/SK-iM880A/sx1272-board.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,6 @@ void SX1272AntSwDeInit( void )
126126

127127
void SX1272SetAntSw( uint8_t rxTx )
128128
{
129-
if( SX1272.RxTx == rxTx )
130-
{
131-
return;
132-
}
133-
134-
SX1272.RxTx = rxTx;
135-
136129
if( rxTx != 0 ) // 1: TX, 0: RX
137130
{
138131
GpioWrite( &AntRx, 0 );

src/boards/SensorNode/sx1276-board.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,6 @@ void SX1276AntSwDeInit( void )
133133

134134
void SX1276SetAntSw( uint8_t rxTx )
135135
{
136-
if( SX1276.RxTx == rxTx )
137-
{
138-
return;
139-
}
140-
141-
SX1276.RxTx = rxTx;
142-
143136
if( rxTx != 0 ) // 1: TX, 0: RX
144137
{
145138
GpioWrite( &AntSwitchLf, 0 );

src/radio/sx1272/sx1272.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ typedef struct SX1272_s
126126
Gpio_t DIO4;
127127
Gpio_t DIO5;
128128
Spi_t Spi;
129-
uint8_t RxTx;
130129
RadioSettings_t Settings;
131130
}SX1272_t;
132131

src/radio/sx1276/sx1276.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ typedef struct SX1276_s
126126
Gpio_t DIO4;
127127
Gpio_t DIO5;
128128
Spi_t Spi;
129-
uint8_t RxTx;
130129
RadioSettings_t Settings;
131130
}SX1276_t;
132131

0 commit comments

Comments
 (0)