LT8900 emulator address convention changed, updated Shenqi protocol accordingly.

This commit is contained in:
pascallanger
2016-04-15 15:46:32 +02:00
parent ed027fd3ce
commit 4486582006
7 changed files with 99 additions and 89 deletions

View File

@@ -182,7 +182,8 @@ static void __attribute__((unused)) CX10_init()
NRF24L01_SetPower();
}
uint16_t CX10_callback() {
uint16_t CX10_callback()
{
switch (phase) {
case CX10_BIND1:
if (bind_counter == 0)
@@ -219,7 +220,7 @@ uint16_t CX10_callback() {
NRF24L01_SetTxRxMode(TXRX_OFF);
NRF24L01_SetTxRxMode(TX_EN);
CX10_Write_Packet(1);
delayMicroseconds(400); // 300µs in deviation but not working so using 400µs instead
_delay_us(1000);
// switch to RX mode
NRF24L01_SetTxRxMode(TXRX_OFF);
NRF24L01_FlushRx();