handle '\r'
carriage return wasn't handled spinner is now correctly working
This commit is contained in:
parent
5bf618368a
commit
4b82ed398c
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue