improve for awtk-web

This commit is contained in:
lixianjing 2024-05-26 12:31:39 +08:00
parent 9a2b33ee11
commit fd32a94a54
2 changed files with 7 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def gen_res(name = 'assets', is_excluded_file_func = default_is_excluded_file_fu
elif action == 'clean':
common.clean_res()
elif action == 'web':
common.gen_res_web_c()
common.gen_res_c()
elif action == 'json':
common.gen_res_json()
elif action != 'pinyin' and action != 'res':

View File

@ -29,6 +29,12 @@
#include "tkc/serial_helper.h"
#include "streams/serial/iostream_serial.h"
#ifdef AWTK_WEB
#define tk_iostream_serial_wait_for_data(a, b) RET_NOT_IMPL
#define tk_iostream_serial_create(a) NULL
#define tk_iostream_serial_config(a, b, c, d, e, f)
#endif/*AWTK_WEB*/
static ret_t serial_widget_apply_props(widget_t* widget);
ret_t serial_widget_set_baudrate(widget_t* widget, uint32_t baudrate) {