Skip to content

Commit 1829011

Browse files
committed
fix error
1 parent b80353a commit 1829011

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

src/MagAlpha.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/***************************************************
2+
Arduino library for the MPS MagAlpha magnetic angle sensor
3+
Supports MagAlpha 3rd generation Sensors. MagAlpha sensor detects the
4+
absolute angular position of a permanent magnet, typically a diametrically
5+
magnetized cylinder on the rotating shaft.
6+
----> http://www.monolithicpower.com/Products/Position-Sensors/Products-Overview
7+
Written by Mathieu Kaelin for Monolithic Power Systems.
8+
MIT license, all text above must be included in any redistribution
9+
****************************************************/
10+
11+
#include "MagAlpha.h"
12+
13+
MagAlpha::MagAlpha(){
14+
}

src/MagAlpha.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#define MA_SPI_MODE_0 SPI_MODE0
2323
#define MA_SPI_MODE_3 SPI_MODE3
2424

25-
class MagAlpha: public MagAlphaGen3 {};
25+
class MagAlpha: public MagAlphaGen3 {
26+
public:
27+
MagAlpha();
28+
};
29+
2630

2731
#endif //MAGALPHA_H

src/MagAlphaGen3.h

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class MagAlphaGen3: public MagAlphaSPI {
5050
uint8_t getSiliconId() override;
5151
uint8_t getSiliconRevision() override;
5252
uint8_t getRegisterMapRevision() override;
53+
};
5354

5455
class MagAlphaSSIGen3: public MagAlphaSSI {};
5556

0 commit comments

Comments
 (0)