1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

No space in sizeof() as per Betaflight coding standard

This commit is contained in:
Steve Evans 2021-12-15 01:23:34 +00:00
parent 14bd75b446
commit e8bf78178b
18 changed files with 65 additions and 65 deletions

View file

@ -172,7 +172,7 @@ static bool flashSpiInit(const flashConfig_t *flashConfig)
*/
uint8_t readIdResponse[4] = { 0 };
spiReadRegBuf(dev, FLASH_INSTRUCTION_RDID, readIdResponse, sizeof (readIdResponse));
spiReadRegBuf(dev, FLASH_INSTRUCTION_RDID, readIdResponse, sizeof(readIdResponse));
// Manufacturer, memory type, and capacity
uint32_t chipID = (readIdResponse[0] << 16) | (readIdResponse[1] << 8) | (readIdResponse[2]);