1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00

Manage BLINK attribute separate from config vars

This commit is contained in:
jflyper 2017-01-30 22:07:02 +09:00 committed by borisbstyle
parent 605066ecf5
commit 3bcf96e6eb
3 changed files with 57 additions and 49 deletions

View file

@ -20,11 +20,9 @@
#include "common/time.h"
#define VISIBLE_FLAG 0x0800
#define BLINK_FLAG 0x0400
#define VISIBLE(x) (x & VISIBLE_FLAG)
#define BLINK(x) ((x & BLINK_FLAG) && blinkState)
#define BLINK_OFF(x) (x & ~BLINK_FLAG)
#define OSD_POS_MAX 0x3FF
#define OSD_POSCFG_MAX (VISIBLE_FLAG|0x3FF) // For CLI values
typedef enum {
OSD_RSSI_VALUE,