diff --git a/board/drivers/usb.h b/board/drivers/usb.h index c291d7e64c..f73fc36b39 100644 --- a/board/drivers/usb.h +++ b/board/drivers/usb.h @@ -563,7 +563,7 @@ void usb_setup(void) { // 96 bits = 12 bytes for (int i = 0; i < 12; i++){ uint8_t cc = ((uint8_t *)UID_BASE)[i]; - resp[2 + (i * 4) + 0] = to_hex_char((cc >> 4) & 0xFU); + resp[2 + (i * 4)] = to_hex_char((cc >> 4) & 0xFU); resp[2 + (i * 4) + 1] = '\0'; resp[2 + (i * 4) + 2] = to_hex_char((cc >> 0) & 0xFU); resp[2 + (i * 4) + 3] = '\0'; diff --git a/tests/misra/suppressions.txt b/tests/misra/suppressions.txt index a08f717a49..72cbbdc788 100644 --- a/tests/misra/suppressions.txt +++ b/tests/misra/suppressions.txt @@ -22,8 +22,7 @@ constParameterCallback knownConditionTrueFalse misra-config -misra-c2012-1.2 -misra-c2012-2.2 +misra-c2012-1.2 # this is from the extensions (e.g. __typeof__) used in the MIN, MAX, ABS, and CLAMP macros misra-c2012-2.3 misra-c2012-2.4 misra-c2012-2.5