mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-11 00:28:14 +00:00
Fix: Arduino 1.6.7 compilation issues
This commit is contained in:
parent
365169a9fb
commit
304fc2536b
@ -99,7 +99,6 @@ uint8_t v_lipo;
|
|||||||
int16_t RSSI_dBm;
|
int16_t RSSI_dBm;
|
||||||
//const uint8_t RSSI_offset=72;//69 71.72 values db
|
//const uint8_t RSSI_offset=72;//69 71.72 values db
|
||||||
uint8_t telemetry_link=0;
|
uint8_t telemetry_link=0;
|
||||||
#include "telemetry.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Callback
|
// Callback
|
||||||
@ -583,6 +582,7 @@ static void Mprotocol_serial_init()
|
|||||||
UCSR0B |= (1<<TXEN0);//tx enable
|
UCSR0B |= (1<<TXEN0);//tx enable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(TELEMETRY)
|
||||||
static void PPM_Telemetry_serial_init()
|
static void PPM_Telemetry_serial_init()
|
||||||
{
|
{
|
||||||
//9600 bauds
|
//9600 bauds
|
||||||
@ -592,6 +592,7 @@ static void PPM_Telemetry_serial_init()
|
|||||||
UCSR0C |= (1<<UCSZ01)|(1<<UCSZ00);
|
UCSR0C |= (1<<UCSZ01)|(1<<UCSZ00);
|
||||||
UCSR0B |= (1<<TXEN0);//tx enable
|
UCSR0B |= (1<<TXEN0);//tx enable
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Convert 32b id to rx_tx_addr
|
// Convert 32b id to rx_tx_addr
|
||||||
static void set_rx_tx_addr(uint32_t id)
|
static void set_rx_tx_addr(uint32_t id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user