Correct FORCE_TEXT
This commit is contained in:
parent
58f73bc0f8
commit
2cbe610b95
20
src/calc.c
20
src/calc.c
|
@ -258,16 +258,20 @@ static void code_click_subscribe(void *context)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LOW_MEM
|
#ifdef LOW_MEM
|
||||||
#define DISPLAY_LINE " (hrt) \":\" (mnt))\n"
|
#define TIME_FUNC \
|
||||||
#else
|
|
||||||
#define DISPLAY_LINE " (hrt) \":\" (if (> 10 (mnt)) \"0\" \"\") (mnt))\n"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define FORCE_TEXT \
|
|
||||||
"(def time (fn ()(utl tt \n"\
|
"(def time (fn ()(utl tt \n"\
|
||||||
" (cat \"Hey, it's \" \n"\
|
" (cat \"Hey, it's \" \n"\
|
||||||
DISPLAY_LINE \
|
" (hrt) \":\" (mnt)\n" \
|
||||||
")))\n" \
|
"))))\n"
|
||||||
|
#else
|
||||||
|
#define TIME_FUNC \
|
||||||
|
"(def time (fn () ((def m (mnt)) (utl tt \n"\
|
||||||
|
" (cat \"Hey, it's \"\n"\
|
||||||
|
" (hrt) \":\" (if (< m 10) \"0\" \"\") m)\n"\
|
||||||
|
"))))\n"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define FORCE_TEXT TIME_FUNC \
|
||||||
"(def ww (cw))\n" \
|
"(def ww (cw))\n" \
|
||||||
"(def tt (atl ww \":\"))\n" \
|
"(def tt (atl ww \":\"))\n" \
|
||||||
"(pw ww)\n" \
|
"(pw ww)\n" \
|
||||||
|
|
Loading…
Reference in New Issue