Skip to content

Commit b4f335c

Browse files
authored
Update LPS22DFSensor.h
Signed-off-by: Carlo Parata <carlo.parata@st.com>
1 parent 0755631 commit b4f335c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/LPS22DFSensor.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343

4444

4545
/* Includes ------------------------------------------------------------------*/
46+
/* For compatibility with ESP32 platforms */
47+
#ifdef ESP32
48+
#ifndef MSBFIRST
49+
#define MSBFIRST SPI_MSBFIRST
50+
#endif
51+
#endif
4652

4753
#include "Wire.h"
4854
#include "SPI.h"

0 commit comments

Comments
 (0)