- cleanup examples makefiles

- fixed bug in MMS mapping read handler
pull/72/head
Michael Zillgith 7 years ago
parent d0061fce96
commit 2585aab516

@ -20,6 +20,7 @@ add_subdirectory(iec61850_client_example4)
add_subdirectory(iec61850_client_example5) add_subdirectory(iec61850_client_example5)
add_subdirectory(iec61850_client_example_reporting) add_subdirectory(iec61850_client_example_reporting)
add_subdirectory(iec61850_client_example_log) add_subdirectory(iec61850_client_example_log)
add_subdirectory(iec61850_client_example_array)
if(NOT WIN32) if(NOT WIN32)
add_subdirectory(iec61850_client_example_files) add_subdirectory(iec61850_client_example_files)

@ -1,11 +1,11 @@
EXAMPLE_DIRS = iec61850_client_example1 EXAMPLE_DIRS = iec61850_client_example1
EXAMPLE_DIRS += iec61850_client_example2 EXAMPLE_DIRS += iec61850_client_example2
EXAMPLE_DIRS += iec61850_client_example3
EXAMPLE_DIRS += iec61850_client_example4 EXAMPLE_DIRS += iec61850_client_example4
EXAMPLE_DIRS += iec61850_client_example5 EXAMPLE_DIRS += iec61850_client_example5
EXAMPLE_DIRS += iec61850_client_example_reporting EXAMPLE_DIRS += iec61850_client_example_reporting
EXAMPLE_DIRS += iec61850_client_example_log EXAMPLE_DIRS += iec61850_client_example_array
EXAMPLE_DIRS += iec61850_client_example_control
EXAMPLE_DIRS += server_example_simple EXAMPLE_DIRS += server_example_simple
EXAMPLE_DIRS += server_example_basic_io EXAMPLE_DIRS += server_example_basic_io
EXAMPLE_DIRS += server_example_password_auth EXAMPLE_DIRS += server_example_password_auth
@ -18,7 +18,6 @@ EXAMPLE_DIRS += server_example_complex_array
EXAMPLE_DIRS += server_example_61400_25 EXAMPLE_DIRS += server_example_61400_25
EXAMPLE_DIRS += server_example_threadless EXAMPLE_DIRS += server_example_threadless
EXAMPLE_DIRS += server_example_setting_groups EXAMPLE_DIRS += server_example_setting_groups
EXAMPLE_DIRS += server_example_logging
EXAMPLE_DIRS += server_example_files EXAMPLE_DIRS += server_example_files
EXAMPLE_DIRS += server_example_substitution EXAMPLE_DIRS += server_example_substitution
EXAMPLE_DIRS += goose_subscriber EXAMPLE_DIRS += goose_subscriber

@ -1,7 +1,7 @@
/* /*
* mms_mapping.c * mms_mapping.c
* *
* Copyright 2013-2017 Michael Zillgith * Copyright 2013-2018 Michael Zillgith
* *
* This file is part of libIEC61850. * This file is part of libIEC61850.
* *
@ -2447,15 +2447,17 @@ mmsReadAccessHandler (void* parameter, MmsDomain* domain, char* variableId, MmsS
#if (CONFIG_IEC61850_SETTING_GROUPS == 1) #if (CONFIG_IEC61850_SETTING_GROUPS == 1)
if (isFunctionalConstraintSE(separator)) { if (separator) {
SettingGroup* sg = getSettingGroupByMmsDomain(self, domain); if (isFunctionalConstraintSE(separator)) {
SettingGroup* sg = getSettingGroupByMmsDomain(self, domain);
if (sg != NULL) { if (sg != NULL) {
if (sg->sgcb->editSG == 0) if (sg->sgcb->editSG == 0)
return DATA_ACCESS_ERROR_TEMPORARILY_UNAVAILABLE; return DATA_ACCESS_ERROR_TEMPORARILY_UNAVAILABLE;
}
else
return DATA_ACCESS_ERROR_OBJECT_NONE_EXISTENT;
} }
else
return DATA_ACCESS_ERROR_OBJECT_NONE_EXISTENT;
} }
#endif /* (CONFIG_IEC61850_SETTING_GROUPS == 1) */ #endif /* (CONFIG_IEC61850_SETTING_GROUPS == 1) */

Loading…
Cancel
Save