ADD test for multi-tasking

This commit is contained in:
fastium
2025-01-06 00:14:43 +01:00
parent 55a6594646
commit 618ddaaa1b
6 changed files with 342 additions and 48 deletions

View File

@ -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();