aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/report
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-05-12 18:24:22 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-05-12 18:24:22 +0300
commitce0fe045c8dc0f005c4e70da5e71729d0c986165 (patch)
tree4b16aa41b0ad3d555780b6d4b3283b46c7ac9276 /Software/Embedded_SW/Embedded/Common/report
parent524bc43f07339979eda1c812354a9a2e8e0f7e09 (diff)
downloadTango-ce0fe045c8dc0f005c4e70da5e71729d0c986165.tar.gz
Tango-ce0fe045c8dc0f005c4e70da5e71729d0c986165.zip
fix double report issue. improve IDS pressure build
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/report')
-rw-r--r--Software/Embedded_SW/Embedded/Common/report/distributor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/report/distributor.c b/Software/Embedded_SW/Embedded/Common/report/distributor.c
index f011653ec..e4ab5fa36 100644
--- a/Software/Embedded_SW/Embedded/Common/report/distributor.c
+++ b/Software/Embedded_SW/Embedded/Common/report/distributor.c
@@ -618,6 +618,11 @@ STATUS ReportFunc(ReportFunction func, uint32_t SwitchAddRemove, DistributorHand
}
if (SwitchAddRemove == REPORT_ADD)
{
+ if ((func == ReportFunc1)||(func == ReportFunc2))
+ {
+ REPORT_MSG (REPORT_ADD,"Report function already exist");
+ return OK;
+ }
if (ReportFunc1 == NULL)
{
ReportFunc1 = func;