File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ upm_mixed_module_init (NAME bmpx8x
4
4
C_SRC bmpx8x.c
5
5
CPP_HDR bmpx8x.hpp
6
6
CPP_SRC bmpx8x.cxx
7
- IFACE_HDR iPressure.hpp
7
+ IFACE_HDR iPressure.hpp iTemperature.hpp
8
8
FTI_SRC bmpx8x_fti.c
9
9
CPP_WRAPS_C
10
10
REQUIRES mraa utilities-c)
Original file line number Diff line number Diff line change 34
34
35
35
#include " mraa/initio.hpp"
36
36
#include < interfaces/iPressure.hpp>
37
+ #include < interfaces/iTemperature.hpp>
37
38
38
39
namespace upm {
39
40
@@ -68,7 +69,7 @@ namespace upm {
68
69
* @snippet bmpx8x.cxx Interesting
69
70
*/
70
71
71
- class BMPX8X : virtual public iPressure {
72
+ class BMPX8X : virtual public iPressure, virtual public iTemperature {
72
73
public:
73
74
/* *
74
75
* Instantiates a BMPX8X object
@@ -147,7 +148,7 @@ namespace upm {
147
148
*
148
149
* @returns The temperature in Celsius.
149
150
*/
150
- float getTemperature ();
151
+ virtual float getTemperature ();
151
152
152
153
/* *
153
154
* Using the supplied altitude in meters, compute the pressure
You can’t perform that action at this time.
0 commit comments