From 3647211ce319883d9e4ee5a87fa4ec72c84a0f54 Mon Sep 17 00:00:00 2001 From: Chasel Date: Mon, 25 Nov 2024 09:12:55 +0000 Subject: [PATCH] update src/heartbeat.c. set the pin mod to output Signed-off-by: Chasel --- src/heartbeat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heartbeat.c b/src/heartbeat.c index 9052c73..10fb760 100644 --- a/src/heartbeat.c +++ b/src/heartbeat.c @@ -42,7 +42,7 @@ static void heartbeat_cb(void *parameter) int heartbeat_init(void) { - rt_pin_mode(PKG_HEARTBEAT_LED_PIN, PIN_MODE_INPUT_PULLUP); + rt_pin_mode(PKG_HEARTBEAT_LED_PIN, PIN_MODE_OUTPUT); rt_pin_write(PKG_HEARTBEAT_LED_PIN, ~PKG_HEARTBEAT_LED_ACTIVE_LOGIC); /* close led */ heartbeat = rt_timer_create("heartbeat", heartbeat_cb, -- Gitee