Made variable const

This commit is contained in:
BlackMark 2020-04-05 03:30:22 +02:00
parent 0a52110d47
commit 0e128bcb7d

View File

@ -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);