change variable type to unsigned char

This commit is contained in:
Shawn Chain
2019-12-07 23:25:57 +08:00
parent 31408d4a33
commit ab226cec27

View File

@@ -44,7 +44,7 @@ void CDMREMB::putData(const unsigned char* data)
DMREMB[1U] = (data[18U] << 4) & 0xF0U;
DMREMB[1U] |= (data[19U] >> 4) & 0x0FU;
char code = CQR1676::decode(DMREMB);
unsigned char code = CQR1676::decode(DMREMB);
m_colorCode = (code >> 4) & 0x0FU;
m_PI = (code & 0x08U) == 0x08U;