From d78f17d91565bfd1df17cd1e78d659907b717f71 Mon Sep 17 00:00:00 2001 From: Chang Jia Jun <135327869+jiajunchang2002g@users.noreply.github.com> Date: Mon, 12 May 2025 03:38:00 +0800 Subject: [PATCH] Update bdev.c Replacing deprecated macro STATIC with static as per the following request: https://github.com/micropython/micropython/pull/13763 --- bdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bdev.c b/bdev.c index 825c577..2c746d3 100644 --- a/bdev.c +++ b/bdev.c @@ -2,7 +2,7 @@ // External SPI flash uses standard SPI interface -STATIC const mp_soft_spi_obj_t soft_spi_bus = { +static const mp_soft_spi_obj_t soft_spi_bus = { .delay_half = MICROPY_HW_SOFTSPI_MIN_DELAY, .polarity = 0, .phase = 0, @@ -12,7 +12,7 @@ STATIC const mp_soft_spi_obj_t soft_spi_bus = { }; #if MICROPY_HW_SPIFLASH_ENABLE_CACHE -STATIC mp_spiflash_cache_t spi_bdev_cache; +static mp_spiflash_cache_t spi_bdev_cache; #endif const mp_spiflash_config_t spiflash_config = {