Backward compatibility for ::updateSample() methods in sensors.

This commit is contained in:
Joe Finney 2018-07-06 03:32:08 +01:00
parent 2d46e9dabd
commit 81b85e1335
2 changed files with 16 additions and 0 deletions

View File

@ -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.
*/

View File

@ -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.