lib: fixed rgb332 macros

This commit is contained in:
Sergey Alirzaev 2020-05-22 20:02:07 +03:00 committed by Steve Markgraf
parent 3f44f8fc22
commit 58de0a5bcc
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ typedef struct fl2k_dev fl2k_dev_t;
#define RGB332_TO_R(x) (((x) & 3) << 6)
#define RGB332_TO_G(x) (((x) & 7) << 3)
#define RGB332_TO_B(x) (((x) & 7) << 0)
#define RGB332_TO_RGB(r, g, b) (TO_R(r) | TO_G(g) | TO_B(b))
#define RGB332_TO_RGB(r, g, b) (RGB332_TO_R(r) | RGB332_TO_G(g) | RGB332_TO_B(b))
FL2K_API uint32_t fl2k_get_device_count(void);