Fix warning about E53_IA1.c with 'array subscript has type char'.

This commit is contained in:
IllusionLee
2019-10-04 16:55:16 +08:00
parent d22f427dcb
commit 6dd262ac09

View File

@@ -91,7 +91,7 @@ uint8_t SHT3x_CheckCrc(char data[], char nbrOfBytes, char checksum)
char crc = 0xFF; char crc = 0xFF;
char bit = 0; char bit = 0;
char byteCtr ; unsigned char byteCtr;
//calculates 8-Bit checksum with given polynomial //calculates 8-Bit checksum with given polynomial
for(byteCtr = 0; byteCtr < nbrOfBytes; ++byteCtr) for(byteCtr = 0; byteCtr < nbrOfBytes; ++byteCtr)