From 55c6798249b224f85639a292e3b2026b97529541 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Thu, 26 Jun 2025 12:10:33 +0800 Subject: [PATCH] remove warning flag --- basic/zflash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic/zflash.c b/basic/zflash.c index a67fe44..aaa3674 100644 --- a/basic/zflash.c +++ b/basic/zflash.c @@ -106,7 +106,7 @@ bool zflash_flush(void) { HAL_FLASH_Unlock(); // HAL_StatusTypeDef status; for (uint32_t i = 0; i < _rawsize; i++) { - status = HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, _flashadd + i * 4, _rawstartadd[i]); + status = HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, (uint32_t)_flashadd + i * 4, _rawstartadd[i]); if (status != HAL_OK) { ZLOGE("flash", "write error"); }