vtx: fix VTX_SETTINGS_POWER_COUNT and add dummy entries to saPowerNames
[inav.git] / src / main / io / displayport_msp_dji_compat.h
blob6380770aa002cb4db6c23bcc8079f7698042eb34
2 /*
3 * This file is part of INAV Project.
5 * INAV is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * Cleanflight is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
19 #pragma once
21 #include <stdint.h>
23 #include "platform.h"
25 #if defined(USE_OSD) && defined(USE_MSP_DISPLAYPORT) && !defined(DISABLE_MSP_DJI_COMPAT)
26 #include "osd.h"
27 uint8_t getDJICharacter(uint8_t ch, uint8_t page);
28 #define isDJICompatibleVideoSystem(osdConfigPtr) (osdConfigPtr->video_system == VIDEO_SYSTEM_DJICOMPAT || osdConfigPtr->video_system == VIDEO_SYSTEM_DJICOMPAT_HD)
29 #else
30 #define getDJICharacter(x, page) (x)
31 #ifdef OSD_UNIT_TEST
32 #define isDJICompatibleVideoSystem(osdConfigPtr) (true)
33 #else
34 #define isDJICompatibleVideoSystem(osdConfigPtr) (false)
35 #endif
36 #endif