summaryrefslogtreecommitdiff
path: root/source/LcmInterface.cpp
diff options
context:
space:
mode:
authorAleksandar Bozhinovski <aleksandar.bozhinovski@seavus.com>2012-04-12 14:34:03 +0200
committerViktor Mladenovski <viktor.mladenovski@seavus.com>2012-05-25 14:45:32 +0200
commitd9f6ac4b324136f8d94f240f8cdf4007751fb4c1 (patch)
tree95ebebd88bb2a14e51e4c30ee6cd0759386e280b /source/LcmInterface.cpp
parent91209946caf8680942ea79166bb209f57ca3e69c (diff)
Auto-generate LcdVersion.cpp and lcm_version.c
LCD/LCM compatibility check was broken by introducing of mingw cross compiler. The functionality is brought back by auto-generating LcdVersion.cpp and lcm_version.c ST-Ericsson ID: 427380 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10204 Change-Id: I6c18973d2a38484bdf3003b0edbf3f7b6dd8c34f Depends-On: I709f594c76bf1d0d0bf88ee205ef94bc772eed10 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/55202 Reviewed-by: QABUILD Tested-by: Blaze MILADINOV <blaze.miladinov@seavus.com> Reviewed-by: Viktor MLADENOVSKI <viktor.mladenovski@stericsson.com>
Diffstat (limited to 'source/LcmInterface.cpp')
-rw-r--r--source/LcmInterface.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/source/LcmInterface.cpp b/source/LcmInterface.cpp
index 516e111..cee1714 100644
--- a/source/LcmInterface.cpp
+++ b/source/LcmInterface.cpp
@@ -16,7 +16,7 @@
#endif
char *LcmInterface::m_pchLCMLibPath = 0;
-extern const char *LCD_LCM_CompatibilityList[];
+extern const char LCD_LCM_Compatibility[];
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
@@ -203,21 +203,15 @@ ErrorCode_e LcmInterface::CommunicationCheckVersion(char *LCMVersion_p, LCM_t LC
{
int ReturnValue = LCM_LOAD_INCOMPATIBLE_PC_VERSION;
- int i = 0;
if (LCMType == LDR_LCM) {
ReturnValue = LCM_LOAD_INCOMPATIBLE_LDR_VERSION;
}
- do {
- if (strcmp(LCMVersion_p, LCD_LCM_CompatibilityList[i]) == 0) {
+ if (strcmp(LCMVersion_p, LCD_LCM_Compatibility) == 0) {
ReturnValue = E_SUCCESS;
- break;
}
- i++;
- } while (LCD_LCM_CompatibilityList[i] != NULL);
-
return static_cast<ErrorCode_e>(ReturnValue);
}