LOLI: RX config

This commit is contained in:
Pascal Langer
2021-01-11 16:27:59 +01:00
parent 8338104266
commit 30e3e84066
5 changed files with 55 additions and 21 deletions

View File

@@ -263,10 +263,6 @@ uint8_t packet_in[TELEMETRY_BUFFER_SIZE];//telemetry receiving packets
bool DSM_SerialRX=false;
#endif
#endif // TELEMETRY
#ifdef LOLI_NRF24L01_INO
bool LOLI_SerialRX=false;
uint8_t LOLI_P1=0, LOLI_P2=0;
#endif
// Callback
typedef uint16_t (*void_function_t) (void);//pointer to a function with no parameters which return an uint16_t integer
@@ -2074,14 +2070,6 @@ void update_serial_data()
DSM_SerialRX=true;
}
#endif
#ifdef LOLI_NRF24L01_INO
if(protocol==PROTO_LOLI && rx_len==27+2)
{//Protocol waiting for 2 bytes
LOLI_SerialRX=true;
LOLI_P1=rx_ok_buff[27];
LOLI_P2=rx_ok_buff[28];
}
#endif
}
RX_DONOTUPDATE_off;