Skip to content

Commit 4e4320d

Browse files
authored
Update LPS22HHSensor.h
Signed-off-by: Carlo Parata <[email protected]>
1 parent 839d85d commit 4e4320d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/LPS22HHSensor.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@
4949
#include "lps22hh_reg.h"
5050

5151
/* Defines -------------------------------------------------------------------*/
52-
52+
/* For compatibility with ESP32 platforms */
53+
#ifdef ESP32
54+
#ifndef MSBFIRST
55+
#define MSBFIRST SPI_MSBFIRST
56+
#endif
57+
#endif
5358

5459

5560
/* Typedefs ------------------------------------------------------------------*/

0 commit comments

Comments
 (0)