Skip to content

Commit c8456c8

Browse files
committed
fixing workflow compile problems
1 parent a8606c0 commit c8456c8

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# SimpleFOC Driver and Support Library
22

3+
![Library Compile](https://github.com/simplefoc/Arduino-FOC-drivers/workflows/Library%20Compile/badge.svg)
4+
35
This library contains an assortment of drivers and supporting code for SimpleFOC.
46

57
The intent is to keep the core of SimpleFOC clean, and thus easy to maintain, understand and port to different platforms. In addition to this core, there are various drivers and supporting code which has grown around SimpleFOC, and which we would like to make available to the community.

src/encoders/as5047/AS5047.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@ struct AS5047Error {
9494
#define AS5047_RESULT_MASK 0x3FFF
9595

9696

97-
#if defined(ESP32)
9897
#define AS5047_BITORDER MSBFIRST
99-
#else
100-
#define AS5047_BITORDER BitOrder::MSBFIRST
101-
#endif
10298

10399
static SPISettings AS5047SPISettings(8000000, AS5047_BITORDER, SPI_MODE1); // @suppress("Invalid arguments")
104100

src/encoders/as5048a/AS5048A.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ struct AS5048Error {
4747
#define AS5048A_RESULT_MASK 0x3FFF
4848

4949

50-
#if defined(ESP32)
5150
#define AS5048_BITORDER MSBFIRST
52-
#else
53-
#define AS5048_BITORDER BitOrder::MSBFIRST
54-
#endif
5551

5652

5753
static SPISettings AS5048SPISettings(8000000, AS5048_BITORDER, SPI_MODE1); // @suppress("Invalid arguments")

src/encoders/ma730/MA730.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ enum FieldStrength {
2525
#define MA730_REG_RD 0x09
2626
#define MA730_REG_MGH_MGL 0x1B
2727

28-
#if defined(ESP32)
2928
#define MA730_BITORDER MSBFIRST
30-
#else
31-
#define MA730_BITORDER BitOrder::MSBFIRST
32-
#endif
3329

3430
static SPISettings MA730SPISettings(8000000, MA730_BITORDER, SPI_MODE3); // @suppress("Invalid arguments")
3531

0 commit comments

Comments
 (0)