Skip to content
Open
Changes from 1 commit
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
5 changes: 5 additions & 0 deletions src/util/inv_mpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
#include <math.h>
#include "inv_mpu.h"

#ifdef ESP32
#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