Skip to content

Commit b51dedc

Browse files
author
Pascal Langer
committed
M-Link: still work in progress
1 parent 49f004e commit b51dedc

File tree

2 files changed

+271
-133
lines changed

2 files changed

+271
-133
lines changed

Multiprotocol/CYRF6936_SPI.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ void CYRF_SetTxRxMode(uint8_t mode)
9898
{
9999
if(mode==TXRX_OFF)
100100
{
101-
if(protocol!=PROTO_WFLY)
101+
if( protocol!=PROTO_WFLY && protocol!=PROTO_MLINK )
102102
CYRF_WriteRegister(CYRF_0F_XACT_CFG, 0x24); // 4=IDLE, 8=TX, C=RX
103103
CYRF_WriteRegister(CYRF_0E_GPIO_CTRL,0x00); // XOUT=0 PACTL=0
104104
}
105105
else
106106
{
107107
//Set the post tx/rx state
108-
if(protocol!=PROTO_WFLY)
108+
if( protocol!=PROTO_WFLY && protocol!=PROTO_MLINK )
109109
CYRF_WriteRegister(CYRF_0F_XACT_CFG, mode == TX_EN ? 0x28 : 0x2C); // 4=IDLE, 8=TX, C=RX
110110
if(mode == TX_EN)
111111
#ifdef ORANGE_TX_BLUE

0 commit comments

Comments
 (0)