Index: sources/maintimer.cpp =================================================================== diff -u -r8c69137f18382bdc55a5678e6ed44a7683fe4dea -r44a85c96ab55e424866ec4cca0270aa218355f82 --- sources/maintimer.cpp (.../maintimer.cpp) (revision 8c69137f18382bdc55a5678e6ed44a7683fe4dea) +++ sources/maintimer.cpp (.../maintimer.cpp) (revision 44a85c96ab55e424866ec4cca0270aa218355f82) @@ -1,22 +1,24 @@ /*! - * + * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. - * \copyright \n - * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, \n - * IN PART OR IN WHOLE, \n - * WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. \n - * - * \file maintimer.cpp - * \date 2019/09/30 - * \author Behrouz NematiPour - * + * \copyright + * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN + * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. + * + * \file maintimer.cpp + * \author (last) Behrouz NematiPour + * \date (last) 13-Apr-2020 + * \author (original) Behrouz NematiPour + * \date (original) 24-Sep-2019 + * */ #include "maintimer.h" //Qt //Project #include "logger.h" +#include "filehandler.h" /*! * \brief MainTimer::MainTimer @@ -33,7 +35,16 @@ */ bool MainTimer::init() { - startTimer(_interval); + // coco begin validated: This is a fake data generator for CANBus missing/swapped frames Testing + // will never be executed on the product + // has been tested manually + if (gFakeInterval) { + startTimer(gFakeInterval); + } + // coco end + else { + startTimer(_interval); + } LOG_EVENT(QObject::tr("Main Timer Initialized")); return true; }