Files

24 lines
359 B
C++
Raw Permalink Normal View History

2021-12-19 23:25:52 +01:00
#include "modes.h"
// local includes
#include "globals.h"
void initDrivingMode()
{
}
void updateDrivingMode()
{
if (lastMode != currentMode)
{
if (lastMode)
lastMode->stop();
lastMode = currentMode;
if (currentMode)
currentMode->start();
}
if (currentMode)
currentMode->update();
}