rusefi/firmware/util/containers/local_version_holder.cpp

21 lines
368 B
C++
Raw Normal View History

2015-07-10 06:01:56 -07:00
/**
* @file local_version_holder.cpp
2015-07-10 06:01:56 -07:00
*
* @date Mar 19, 2014
2018-01-20 17:55:31 -08:00
* @author Andrey Belomutskiy, (c) 2012-2018
2015-07-10 06:01:56 -07:00
*/
#include "local_version_holder.h"
2015-07-10 06:01:56 -07:00
int LocalVersionHolder::getVersion() {
return localVersion;
}
bool LocalVersionHolder::isOld(int globalVersion) {
if (globalVersion > localVersion) {
localVersion = globalVersion;
2015-07-10 06:01:56 -07:00
return true;
}
return false;
}