shortened utf cache & added missing flash storage attr

http-comm
Ondřej Hruška 7 years ago
parent 7cf82753ff
commit 65d177f149
  1. 3
      user/screen.c
  2. 2
      user/serial.c
  3. 2
      user/utf8.h

@ -1373,7 +1373,8 @@ screen_report_sgr(char *buffer)
//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];

@ -21,7 +21,7 @@ static void buf_putc(char c)
static void ICACHE_FLASH_ATTR
buf_pop(void *unused)
{
u32 quantity = 32;
u32 quantity = 16;
u32 old_ls;
while (quantity > 0) {
// stop when done

@ -8,7 +8,7 @@
#include <c_types.h>
// 160 is maximum possible
#define UNICODE_CACHE_SIZE 160
#define UNICODE_CACHE_SIZE 100
typedef u8 UnicodeCacheRef;
#define IS_UNICODE_CACHE_REF(c) ((c) < 32 || (c) >= 127)

Loading…
Cancel
Save