From eacc4f91520815e2cac25e2822a5d1ec9804eb60 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 29 May 2024 16:35:32 +0200 Subject: [PATCH] pkg/flashdb: use common MIN() macro --- pkg/flashdb/mtd/fal_mtd_port.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/flashdb/mtd/fal_mtd_port.c b/pkg/flashdb/mtd/fal_mtd_port.c index 248cf01859..1163aced4f 100644 --- a/pkg/flashdb/mtd/fal_mtd_port.c +++ b/pkg/flashdb/mtd/fal_mtd_port.c @@ -17,14 +17,13 @@ * @] */ +#include "macros/utils.h" #include "mtd.h" #include #include #include -#define MIN(a, b) ((a) > (b) ? (b) : (a)) - static mtd_dev_t *_mtd; static int _read(long offset, uint8_t *buf, size_t size)