From e6075d4bd34682a9111e54904be51108f6487780 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Sat, 30 Jul 2022 10:03:42 +0100 Subject: [PATCH] ch32f1: Static correctness for for ch32f1_buffer_clear --- src/target/ch32f1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/ch32f1.c b/src/target/ch32f1.c index afb8048..776ef02 100644 --- a/src/target/ch32f1.c +++ b/src/target/ch32f1.c @@ -276,7 +276,7 @@ static int ch32f1_upload(target *t, uint32_t dest, const void *src, uint32_t off \fn ch32f1_buffer_clear \brief clear the write buffer */ -int ch32f1_buffer_clear(target *t) +static int ch32f1_buffer_clear(target *t) { volatile uint32_t sr; SET_CR(FLASH_CR_FTPG_CH32); // Fast page program 4-