From 0e128bcb7d0c46a2533336ecd2fb1ee16de5b947 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sun, 5 Apr 2020 03:30:22 +0200 Subject: [PATCH] Made variable const --- uart.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uart.hpp b/uart.hpp index e5adff3..6f51869 100644 --- a/uart.hpp +++ b/uart.hpp @@ -134,7 +134,7 @@ class Uart { data_t *bufEnd = buffer + numDigits - 1; do { - data_t lastDigit = digits % Base; + const data_t lastDigit = digits % Base; *bufEnd-- = (lastDigit < 10) ? ('0' + lastDigit) : (alphaChar + lastDigit - 10); digits /= Base; } while (digits > 0);