diff --git a/sources/EngLog.cpp b/sources/EngLog.cpp index 93292f9..88ad4b2 100644 --- a/sources/EngLog.cpp +++ b/sources/EngLog.cpp @@ -123,12 +123,18 @@ void CEngLog::AddLogString(QString string, unsigned int Verbosity) //When a buffer is already formatted, just write it to the file. void CEngLog::WriteFormattedString(QString string) { + if(mEngLogFile == NULL) + return; + mEngLogFile->write(string.toUtf8()); qDebug("%s",string.toUtf8().data()); } unsigned int CEngLog::DeleteEngLogFile() { + if(mEngLogFile == NULL) + return RET_ERROR; + mEngLogFile->remove(); delete mEngLogFile; diff --git a/sources/ZTVersion.h b/sources/ZTVersion.h index b28b302..54bf80c 100644 --- a/sources/ZTVersion.h +++ b/sources/ZTVersion.h @@ -28,9 +28,15 @@ #ifndef ZTVERSION_H #define ZTVERSION_H -#define ZT_SOFT_VERSION "ZT_MODBUS_DEV" +#define ZT_SOFT_VERSION "V1.16" //LOG DES CHANGEMENTS +//Version 1.16 +//-Implantation de la communicationp Modbus avec la Commande Centralisée. Ceci implique +// plusieurs changements. +//-Correction d'un bug qui faisait planter le logiciel lors de la désactivation du log +// d'ingénierie. + //Version 1.15 //Modification de l'initialisation de la station à partir de la clef électrique directement. //Retrait de la vérification de la cohérence de la clef avec le fichier de configuration.