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