awtk icon indicating copy to clipboard operation
awtk copied to clipboard

问一下 这个宏ENABLE_PERFORMANCE_PROFILE应该定义在那里才能使用lcd_profile.c的代码

Open wyztxzs opened this issue 2 years ago • 3 comments

wyztxzs avatar Nov 24 '22 09:11 wyztxzs

还想知道打印是直接调用lcd_profile_t_里的数据吗? 要用里面的函数吗

wyztxzs avatar Nov 24 '22 10:11 wyztxzs

src/pages/home_page.c: In function 'home_page_init': src/pages/home_page.c:315:3: warning: statement with no effect [-Wunused-value] ((lcd_profile_t*)(lcd)); ~^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/share/AWStudio/AWTK/SDK/awtk/src/tkc/types_def.h:268, from /usr/share/AWStudio/AWTK/SDK/awtk/src/tkc/value.h:22, from /usr/share/AWStudio/AWTK/SDK/awtk/src/tkc/str.h:25, from /usr/share/AWStudio/AWTK/SDK/awtk/src/tkc/object.h:25, from /usr/share/AWStudio/AWTK/SDK/awtk/src/tkc/ostream.h:25, from /usr/share/AWStudio/AWTK/SDK/awtk/src/tkc.h:25, from /usr/share/AWStudio/AWTK/SDK/awtk/src/awtk_tkc.h:22, from /usr/share/AWStudio/AWTK/SDK/awtk/src/awtk.h:27, from src/pages/home_page.c:1: src/pages/home_page.c:318:34: error: 'lcd_t' {aka 'struct _lcd_t'} has no member named 'total_const' log_debug("total const %u\n",lcd->total_const);

wyztxzs avatar Nov 24 '22 10:11 wyztxzs

lcd_t* impl;
lcd_t* lcd = lcd_profile_create(impl);
((lcd_profile_t*)(lcd));

log_debug("total const %u\n",lcd->total_cost);

wyztxzs avatar Nov 24 '22 10:11 wyztxzs