This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 5fabe091f3 boards/xtensa/esp32s3: Treat return value that greater than
zero as succ
5fabe091f3 is described below
commit 5fabe091f3abef180c7eb7896d8739143128b488
Author: wangjianyu3 <[email protected]>
AuthorDate: Tue Nov 26 14:51:10 2024 +0800
boards/xtensa/esp32s3: Treat return value that greater than zero as succ
board_spiflash_init() => init_storage_partition() => parse_mtd_partition()
`parse_mtd_partition()` may return value that greater than zero when succ
Signed-off-by: wangjianyu3 <[email protected]>
---
boards/xtensa/esp32s3/esp32s3-devkit/src/esp32s3_bringup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/src/esp32s3_bringup.c
b/boards/xtensa/esp32s3/esp32s3-devkit/src/esp32s3_bringup.c
index fc88567429..899479c89f 100644
--- a/boards/xtensa/esp32s3/esp32s3-devkit/src/esp32s3_bringup.c
+++ b/boards/xtensa/esp32s3/esp32s3-devkit/src/esp32s3_bringup.c
@@ -243,7 +243,7 @@ int esp32s3_bringup(void)
#ifdef CONFIG_ESP32S3_SPIFLASH
ret = board_spiflash_init();
- if (ret)
+ if (ret < 0)
{
syslog(LOG_ERR, "ERROR: Failed to initialize SPI Flash\n");
}