diff --git a/board/drivers/uart.h b/board/drivers/uart.h index 3fcc93cabc923f..b0270ba089797a 100644 --- a/board/drivers/uart.h +++ b/board/drivers/uart.h @@ -323,7 +323,7 @@ void putui(uint32_t i) { str[idx] = (i_copy % 10) + 0x30; idx--; i_copy /= 10; - } while (i_copy / 10 != 0); + } while ((i / 10) != 0); puts(str + idx + 1); }