handle '\r'

carriage return wasn't handled
spinner is now correctly working
This commit is contained in:
Bartlomiej Cieszkowski 2023-02-24 21:39:01 +01:00
parent 5bf618368a
commit 4b82ed398c
3 changed files with 12 additions and 0 deletions

View File

@ -72,6 +72,10 @@ size_t U8X8::write(uint8_t v)
ty+=dy;
tx=0;
}
else if ( v == '\r' )
{
tx=0;
}
else
{
uint8_t dx = u8x8_pgm_read(u8x8.font+2); /* new 2019 format */

View File

@ -60,6 +60,10 @@ size_t U8X8::write(uint8_t v)
ty+=dy;
tx=0;
}
else if ( v == '\r' )
{
tx=0;
}
else
{
uint8_t dx = u8x8_pgm_read(u8x8.font+2); /* new 2019 format */

View File

@ -60,6 +60,10 @@ size_t U8X8::write(uint8_t v)
ty+=dy;
tx=0;
}
else if ( v == '\r' )
{
tx=0;
}
else
{
uint8_t dx = u8x8_pgm_read(u8x8.font+2); /* new 2019 format */