Made variable const
This commit is contained in:
1 parent
0a52110d47
commit
0e128bcb7d
1 file changed
+1
-1
@@ -134,7 +134,7 @@ class Uart {
|
|||||||
data_t *bufEnd = buffer + numDigits - 1;
|
data_t *bufEnd = buffer + numDigits - 1;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
data_t lastDigit = digits % Base;
|
const data_t lastDigit = digits % Base;
|
||||||
*bufEnd-- = (lastDigit < 10) ? ('0' + lastDigit) : (alphaChar + lastDigit - 10);
|
*bufEnd-- = (lastDigit < 10) ? ('0' + lastDigit) : (alphaChar + lastDigit - 10);
|
||||||
digits /= Base;
|
digits /= Base;
|
||||||
} while (digits > 0);
|
} while (digits > 0);
|
||||||
|
|||||||
Reference in new issue
Block a user