Skip to content

Commit a4cfda8

Browse files
author
Richard Unger
committed
fix AVR compile error
1 parent f5f65a2 commit a4cfda8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/encoders/aeat8800q24/AEAT8800Q24.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,12 @@ typedef union {
7070
} AEAT8800Q24_Status_t;
7171

7272

73-
#if defined(ESP32)
74-
#define AEAT8800Q24_BITORDER MSBFIRST
75-
#else
76-
#define AEAT8800Q24_BITORDER BitOrder::MSBFIRST
73+
#ifndef MSBFIRST
74+
#define MSBFIRST BitOrder::MSBFIRST
7775
#endif
7876

79-
static SPISettings AEAT8800Q24SPISettings(1000000, AEAT8800Q24_BITORDER, SPI_MODE3); // @suppress("Invalid arguments")
80-
static SPISettings AEAT8800Q24SSISettings(4000000, AEAT8800Q24_BITORDER, SPI_MODE2); // @suppress("Invalid arguments")
77+
static SPISettings AEAT8800Q24SPISettings(1000000, MSBFIRST, SPI_MODE3); // @suppress("Invalid arguments")
78+
static SPISettings AEAT8800Q24SSISettings(4000000, MSBFIRST, SPI_MODE2); // @suppress("Invalid arguments")
8179

8280

8381
class AEAT8800Q24 {

0 commit comments

Comments
 (0)