Made variable const
This commit is contained in:
parent
0a52110d47
commit
0e128bcb7d
2
uart.hpp
2
uart.hpp
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user