ADD test for multi-tasking
This commit is contained in:
@ -80,6 +80,10 @@ float Speedometer::getDistance() {
|
||||
}
|
||||
|
||||
void Speedometer::reset() {
|
||||
#if defined(MBED_TEST_MODE)
|
||||
_cbOnReset();
|
||||
#endif
|
||||
|
||||
this->_totalDistanceMutex.lock();
|
||||
this->_totalDistance = 0.0f;
|
||||
this->_totalDistanceMutex.unlock();
|
||||
|
Reference in New Issue
Block a user