shortened utf cache & added missing flash storage attr

This commit is contained in:
2017-09-11 03:26:57 +02:00
parent 7cf82753ff
commit 65d177f149
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -1373,7 +1373,8 @@ screen_report_sgr(char *buffer)
//region --- Printing --- //region --- Printing ---
static const char *putchar_graphic(const char *ch) static const char* ICACHE_FLASH_ATTR
putchar_graphic(const char *ch)
{ {
static char buf[4]; static char buf[4];
+1 -1
View File
@@ -21,7 +21,7 @@ static void buf_putc(char c)
static void ICACHE_FLASH_ATTR static void ICACHE_FLASH_ATTR
buf_pop(void *unused) buf_pop(void *unused)
{ {
u32 quantity = 32; u32 quantity = 16;
u32 old_ls; u32 old_ls;
while (quantity > 0) { while (quantity > 0) {
// stop when done // stop when done
+1 -1
View File
@@ -8,7 +8,7 @@
#include <c_types.h> #include <c_types.h>
// 160 is maximum possible // 160 is maximum possible
#define UNICODE_CACHE_SIZE 160 #define UNICODE_CACHE_SIZE 100
typedef u8 UnicodeCacheRef; typedef u8 UnicodeCacheRef;
#define IS_UNICODE_CACHE_REF(c) ((c) < 32 || (c) >= 127) #define IS_UNICODE_CACHE_REF(c) ((c) < 32 || (c) >= 127)