Skip to content

Commit

Permalink
improve console box performance
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Feb 20, 2025
1 parent be0f44a commit 2318413
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ARM.Arm-2D.pdsc
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
</RTE_Components_h>
</component>

<component Cclass="Acceleration" Cgroup="Arm-2D Extras" Csub="Controls" Cversion="2.4.0" condition="Arm-2D-Controls">
<component Cclass="Acceleration" Cgroup="Arm-2D Extras" Csub="Controls" Cversion="2.4.1" condition="Arm-2D-Controls">
<description>A set of example controls, e.g. round-corner-box, spinning-wheels etc</description>
<files>
<!-- example control source files -->
Expand Down
11 changes: 10 additions & 1 deletion Helper/Source/console_box.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,17 @@ void console_box_show( console_box_t *ptThis,
break;
}

arm_lcd_putchar((const char *)&wUTF8);
int_fast8_t chUTF8Len = arm_2d_helper_get_utf8_byte_length((const uint8_t *)&wUTF8);

if (!arm_lcd_putchar_to_buffer((uint8_t *)&wUTF8, chUTF8Len)) {
arm_lcd_printf_buffer(0);
arm_lcd_putchar_to_buffer((uint8_t *)&wUTF8, chUTF8Len);
}

//arm_lcd_putchar((const char *)&wUTF8);
} while(true);

arm_lcd_printf_buffer(0);
}


Expand Down

0 comments on commit 2318413

Please sign in to comment.