From ce0fe045c8dc0f005c4e70da5e71729d0c986165 Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Sun, 12 May 2019 18:24:22 +0300 Subject: fix double report issue. improve IDS pressure build --- Software/Embedded_SW/Embedded/Common/report/distributor.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Software/Embedded_SW/Embedded/Common/report') 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; -- cgit v1.3.1