Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/util/inv_mpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
#include <math.h>
#include "inv_mpu.h"

#ifdef ESP32
#define min(a,b) ((a)<(b)?(a):(b))
#endif

#ifdef ESP8266
#define min(a,b) ((a)<(b)?(a):(b))
#endif

/* The following functions must be defined for this platform:
* i2c_write(unsigned char slave_addr, unsigned char reg_addr,
* unsigned char length, unsigned char const *data)
Expand Down