Merge branch 'shake_last_gesture' of git://github.com/microbit-carlos/microbit-dal into dal-integration

This commit is contained in:
Joe Finney 2018-09-05 09:59:47 +01:00
commit 8e8dbd668d
1 changed files with 1 additions and 0 deletions

View File

@ -311,6 +311,7 @@ void MicroBitAccelerometer::updateGesture()
if (g == MICROBIT_ACCELEROMETER_EVT_SHAKE)
{
lastGesture = MICROBIT_ACCELEROMETER_EVT_SHAKE;
MicroBitEvent e(MICROBIT_ID_GESTURE, MICROBIT_ACCELEROMETER_EVT_SHAKE);
return;
}