1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 23:35:34 +03:00

Fixed Singularity target.

This commit is contained in:
Martin Budden 2016-06-14 16:20:50 +01:00
parent e95eee9a0d
commit df9a0f186f
5 changed files with 25 additions and 21 deletions

View file

@ -35,6 +35,8 @@
#include "drivers/timer.h"
#include "drivers/pwm_rx.h"
#include "drivers/serial.h"
#include "drivers/vtx_rtc6705.h"
#include "sensors/sensors.h"
#include "sensors/gyro.h"
@ -72,7 +74,7 @@
static uint8_t locked = 0;
void vtxInit()
void vtxInit(void)
{
rtc6705Init();
if (masterConfig.vtx_mode == 0) {
@ -100,27 +102,27 @@ static void setChannelSaveAndNotify(uint8_t *bandOrChannel, uint8_t step, int32_
}
}
void vtxIncrementBand()
void vtxIncrementBand(void)
{
setChannelSaveAndNotify(&(masterConfig.vtx_band), 1, RTC6705_BAND_MIN, RTC6705_BAND_MAX);
}
void vtxDecrementBand()
void vtxDecrementBand(void)
{
setChannelSaveAndNotify(&(masterConfig.vtx_band), -1, RTC6705_BAND_MIN, RTC6705_BAND_MAX);
}
void vtxIncrementChannel()
void vtxIncrementChannel(void)
{
setChannelSaveAndNotify(&(masterConfig.vtx_channel), 1, RTC6705_CHANNEL_MIN, RTC6705_CHANNEL_MAX);
}
void vtxDecrementChannel()
void vtxDecrementChannel(void)
{
setChannelSaveAndNotify(&(masterConfig.vtx_channel), -1, RTC6705_CHANNEL_MIN, RTC6705_CHANNEL_MAX);
}
void vtxUpdateActivatedChannel()
void vtxUpdateActivatedChannel(void)
{
if (ARMING_FLAG(ARMED)) {
locked = 1;
@ -143,4 +145,5 @@ void vtxUpdateActivatedChannel()
}
}
#endif
#endif