mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Call vtxCommonProcess instead of device dependent periodic service function
This commit is contained in:
parent
12e265c006
commit
b9430f82b7
4 changed files with 18 additions and 4 deletions
|
@ -43,6 +43,15 @@ void vtxCommonRegisterDevice(vtxDevice_t *pDevice)
|
|||
vtxDevice = pDevice;
|
||||
}
|
||||
|
||||
void vtxCommonProcess(uint32_t currentTimeUs)
|
||||
{
|
||||
if (!vtxDevice)
|
||||
return;
|
||||
|
||||
if (vtxDevice->vTable->process)
|
||||
vtxDevice->vTable->process(currentTimeUs);
|
||||
}
|
||||
|
||||
vtxDevType_e vtxCommonGetDeviceType(void)
|
||||
{
|
||||
if (!vtxDevice)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue