mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
MAX7456 code tidy
This commit is contained in:
parent
07855aaf12
commit
7be1d09e50
8 changed files with 89 additions and 96 deletions
|
@ -65,7 +65,6 @@
|
|||
#include "drivers/usb_io.h"
|
||||
#include "drivers/transponder_ir.h"
|
||||
#include "drivers/exti.h"
|
||||
#include "drivers/max7456.h"
|
||||
#include "drivers/vtx_rtc6705.h"
|
||||
#include "drivers/vtx_common.h"
|
||||
#include "drivers/camera_control.h"
|
||||
|
@ -163,18 +162,6 @@ void processLoopback(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef VTX_RTC6705
|
||||
bool canUpdateVTX(void)
|
||||
{
|
||||
#if defined(MAX7456_SPI_INSTANCE) && defined(RTC6705_SPI_INSTANCE) && defined(SPI_SHARED_MAX7456_AND_RTC6705)
|
||||
if (feature(FEATURE_OSD)) {
|
||||
return !max7456DmaInProgress();
|
||||
}
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef BUS_SWITCH_PIN
|
||||
void busSwitchInit(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue