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