1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

LP-552 Moves call to PIOS_BOARD_IO_Configure_OPLink_RCVR from pios_board.c to pios_board_io.c (conditional on OpenLRS protocol not being configured).

This commit is contained in:
Brian Webb 2017-09-18 18:54:31 -07:00
parent d9cce5e0d9
commit f289f17b83
3 changed files with 5 additions and 8 deletions

View File

@ -703,6 +703,11 @@ void PIOS_BOARD_IO_Configure_RFM22B()
break;
}
/* Initialize the OPLink Receiver */
#ifdef PIOS_INCLUDE_OPLINKRCVR
PIOS_BOARD_IO_Configure_OPLink_RCVR();
#endif
/* Reinitialize the modem. */
PIOS_RFM22B_Reinit(pios_rfm22b_id);
}

View File

@ -315,10 +315,6 @@ void PIOS_Board_Init(void)
PIOS_BOARD_IO_Configure_GCS_RCVR();
#endif
#ifdef PIOS_INCLUDE_OPLINKRCVR
PIOS_BOARD_IO_Configure_OPLink_RCVR();
#endif
#ifndef PIOS_ENABLE_DEBUG_PINS
// pios_servo_cfg points to the correct configuration based on input port settings
PIOS_Servo_Init(pios_servo_cfg);

View File

@ -274,10 +274,6 @@ void PIOS_Board_Init(void)
PIOS_BOARD_IO_Configure_GCS_RCVR();
#endif
#ifdef PIOS_INCLUDE_OPLINKRCVR
PIOS_BOARD_IO_Configure_OPLink_RCVR();
#endif
#ifndef PIOS_ENABLE_DEBUG_PINS
PIOS_Servo_Init(&pios_servo_cfg_out);
#else