Fix WS2812 led definition
[inav.git] / src / main / io / displayport_msp_bf_compat.h
blobb7fe2707006ee376a451140c1341a0b1665f9d5f
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_MSP_DISPLAYPORT) && !defined(DISABLE_MSP_BF_COMPAT)
26 #include "osd.h"
27 uint8_t getBfCharacter(uint8_t ch, uint8_t page);
28 #define isBfCompatibleVideoSystem(osdConfigPtr) (osdConfigPtr->video_system == VIDEO_SYSTEM_BFCOMPAT)
29 #else
30 #define getBfCharacter(x, page) (x)
31 #define isBfCompatibleVideoSystem(osdConfigPtr) (false)
32 #endif