From e35b36a1e10cab97774126be069860e61dc9afcc Mon Sep 17 00:00:00 2001 From: "mr.zhangsan" Date: Thu, 13 Jun 2024 19:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3led=20dat=E8=AE=A1=E7=AE=97bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/app/main.c | 2 +- source/app/task_bled.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/app/main.c b/source/app/main.c index 6f30e7d..72374ac 100644 --- a/source/app/main.c +++ b/source/app/main.c @@ -150,7 +150,7 @@ void main(void) L0_main_init(); //任务及外设初始化 - //L0_task_init(); + L0_task_init(); //上电延时方便输出 delayInMs(1000); diff --git a/source/app/task_bled.c b/source/app/task_bled.c index ba68c20..a36b73d 100644 --- a/source/app/task_bled.c +++ b/source/app/task_bled.c @@ -63,7 +63,7 @@ U16 L0_led_array_2_dat() U16 dat = 0; for(i = 1; i < LED_BTN_NUM; i++) { - dat |= (R.led_status[i] << (i-1)); + dat |= ((U16)R.led_status[i] << (i-1)); } return dat; }