mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/flashdb: use common MIN() macro
This commit is contained in:
parent
4ff877d239
commit
eacc4f9152
@ -17,14 +17,13 @@
|
|||||||
* @]
|
* @]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "macros/utils.h"
|
||||||
#include "mtd.h"
|
#include "mtd.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <fal.h>
|
#include <fal.h>
|
||||||
|
|
||||||
#define MIN(a, b) ((a) > (b) ? (b) : (a))
|
|
||||||
|
|
||||||
static mtd_dev_t *_mtd;
|
static mtd_dev_t *_mtd;
|
||||||
|
|
||||||
static int _read(long offset, uint8_t *buf, size_t size)
|
static int _read(long offset, uint8_t *buf, size_t size)
|
||||||
|
Loading…
Reference in New Issue
Block a user