Skip to content

Commit

Permalink
Add define for backward compatibility + remove commented line
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieukaelin committed Nov 19, 2024
1 parent eb604db commit b80353a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/MagAlpha.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
#endif
#include "MagAlphaGen3.h"

//SPI Mode: MagAlpha Gen3 support SPI mode 3 and 0 [SPI_MODE3, SPI_MODE0]
#define MA_SPI_MODE_0 SPI_MODE0
#define MA_SPI_MODE_3 SPI_MODE3

class MagAlpha: public MagAlphaGen3 {};

#endif //MAGALPHA_H
1 change: 0 additions & 1 deletion src/MagAlphaGen3.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#else
#include "WProgram.h"
#endif
// #include <SPI.h>
#include "MagAlphaBase.h"

class MagAlphaGen3: public MagAlphaSPI {
Expand Down

0 comments on commit b80353a

Please sign in to comment.