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

master
Joe Finney 5 years ago
parent 2d46e9dabd
commit 81b85e1335
  1. 8
      inc/drivers/MicroBitAccelerometer.h
  2. 8
      inc/drivers/MicroBitCompass.h

@ -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…
Cancel
Save