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/SW_Info/SW_Info.c | 2 +- Software/Embedded_SW/Embedded/Common/report/distributor.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'Software/Embedded_SW/Embedded/Common') diff --git a/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c b/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c index 81a34b7ac..84791face 100644 --- a/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c +++ b/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c @@ -20,7 +20,7 @@ typedef struct } TangoVersion_t; -TangoVersion_t _gTangoVersion = {1,3,9,10}; +TangoVersion_t _gTangoVersion = {1,3,9,11}; #define BUILD_DATE __DATE__ char Dat[50] = BUILD_DATE; char _gTangoName [MAX_STRING_LEN] = "Tango01 ";//d 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