1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 00:29:46 +01:00

pkg/flashdb: use common MIN() macro

This commit is contained in:
Benjamin Valentin 2024-05-29 16:35:32 +02:00
parent 4ff877d239
commit eacc4f9152

View File

@ -17,14 +17,13 @@
* @]
*/
#include "macros/utils.h"
#include "mtd.h"
#include <string.h>
#include <limits.h>
#include <fal.h>
#define MIN(a, b) ((a) > (b) ? (b) : (a))
static mtd_dev_t *_mtd;
static int _read(long offset, uint8_t *buf, size_t size)