optimisation: change index from uint32_t to uint8_t

Change in memory:
Flash: -152 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-01-21 08:53:53 +00:00
parent 8c4cd11ae0
commit a5f7f1d735
2 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ void MarlinSerial::println(double n, int digits)
void MarlinSerial::printNumber(unsigned long n, uint8_t base)
{
unsigned char buf[8 * sizeof(long)]; // Assumes 8-bit chars.
unsigned long i = 0;
uint8_t i = 0;
if (n == 0) {
print('0');

View File

@ -621,7 +621,7 @@ void lcd_print(double n, int digits)
void lcd_printNumber(unsigned long n, uint8_t base)
{
unsigned char buf[8 * sizeof(long)]; // Assumes 8-bit chars.
unsigned long i = 0;
uint8_t i = 0;
if (n == 0)
{
lcd_print('0');