Backward compatibility for ::updateSample() methods in sensors.
This commit is contained in:
parent
2d46e9dabd
commit
81b85e1335
|
@ -316,6 +316,14 @@ class MicroBitAccelerometer : public MicroBitComponent
|
||||||
*/
|
*/
|
||||||
uint16_t getGesture();
|
uint16_t getGesture();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* updateSample() method maintained here as an inline method purely for backward compatibility.
|
||||||
|
*/
|
||||||
|
inline void updateSample()
|
||||||
|
{
|
||||||
|
getSample();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destructor.
|
* Destructor.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -291,6 +291,14 @@ class MicroBitCompass : public MicroBitComponent
|
||||||
*/
|
*/
|
||||||
int getZ();
|
int getZ();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* updateSample() method maintained here as an inline method purely for backward compatibility.
|
||||||
|
*/
|
||||||
|
inline void updateSample()
|
||||||
|
{
|
||||||
|
getSample();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destructor.
|
* Destructor.
|
||||||
|
|
Loading…
Reference in New Issue