mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2024-10-01 03:15:40 -04:00
Fix nRF52 compilation error
This commit is contained in:
parent
fe563fac29
commit
cce8b0c18a
1
Config.h
1
Config.h
@ -330,6 +330,7 @@
|
|||||||
const int pin_dio = 47;
|
const int pin_dio = 47;
|
||||||
const int pin_led_rx = LED_BLUE;
|
const int pin_led_rx = LED_BLUE;
|
||||||
const int pin_led_tx = LED_GREEN;
|
const int pin_led_tx = LED_GREEN;
|
||||||
|
const int pin_tcxo_enable = -1;
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#error An unsupported board was selected. Cannot compile RNode firmware.
|
#error An unsupported board was selected. Cannot compile RNode firmware.
|
||||||
|
@ -73,8 +73,10 @@ void setup() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_TCXO == true
|
#if HAS_TCXO == true
|
||||||
pinMode(pin_tcxo_enable, OUTPUT);
|
if (pin_tcxo_enable != -1) {
|
||||||
digitalWrite(pin_tcxo_enable, HIGH);
|
pinMode(pin_tcxo_enable, OUTPUT);
|
||||||
|
digitalWrite(pin_tcxo_enable, HIGH);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Initialise buffers
|
// Initialise buffers
|
||||||
|
Loading…
Reference in New Issue
Block a user