mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
Add RunCam Device Protocol Support(DisplayPort, DeviceSetting Access, 5 key osd cable simulation)
This commit is contained in:
parent
3942536012
commit
4df1084d1d
23 changed files with 3242 additions and 627 deletions
|
@ -61,6 +61,7 @@
|
|||
|
||||
// For VISIBLE*
|
||||
#include "io/osd.h"
|
||||
#include "io/rcdevice_cam.h"
|
||||
|
||||
#include "rx/rx.h"
|
||||
|
||||
|
@ -887,6 +888,12 @@ uint16_t cmsHandleKeyWithRepeat(displayPort_t *pDisplay, uint8_t key, int repeat
|
|||
|
||||
void cmsUpdate(uint32_t currentTimeUs)
|
||||
{
|
||||
#ifdef USE_RCDEVICE
|
||||
if(rcdeviceInMenu) {
|
||||
return ;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int16_t rcDelayMs = BUTTON_TIME;
|
||||
static int holdCount = 1;
|
||||
static int repeatCount = 1;
|
||||
|
@ -1000,6 +1007,8 @@ void cmsHandler(timeUs_t currentTimeUs)
|
|||
if (cmsDeviceCount < 0)
|
||||
return;
|
||||
|
||||
|
||||
|
||||
static timeUs_t lastCalledUs = 0;
|
||||
|
||||
if (currentTimeUs >= lastCalledUs + CMS_UPDATE_INTERVAL_US) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue