Fix PROGMEM errors and warnings

This commit is contained in:
PaulStoffregen
2017-09-04 07:48:00 -07:00
parent 839dbf0a21
commit db6fca9763
3 changed files with 14 additions and 9 deletions

View File

@@ -158,7 +158,9 @@
/** Arranges 2 grayscale values (0 - 4095) in the packed array format (3 bytes).
This is for array initializers only: the output is three comma seperated
8-bit values. */
#define GS_DUO(a, b) ((a) >> 4), ((a) << 4) | ((b) >> 8), (b)
//#define GS_DUO(a, b) ((a) >> 4), ((a) << 4) | ((b) >> 8), (b)
#define GS_DUO(a, b) (uint8_t)((a) >> 4), (uint8_t)((a) << 4) | (uint8_t)((b) >> 8), (uint8_t)(b)
#if VPRG_ENABLED