From 8b22a3a67ecf8eac0cd2cefb0c27e6b06eb8fbb7 Mon Sep 17 00:00:00 2001 From: pavanvpatil <90551385+pavanvpatil@users.noreply.github.com> Date: Sun, 30 Oct 2022 09:29:23 +0530 Subject: [PATCH] Error fixed in attack detect --- iPDC/src/Attack_detect.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iPDC/src/Attack_detect.c b/iPDC/src/Attack_detect.c index 095253d..326e2f4 100644 --- a/iPDC/src/Attack_detect.c +++ b/iPDC/src/Attack_detect.c @@ -34,6 +34,7 @@ gboolean attack_detect_freq(struct data_frame *df) head->AVERAGE_OF_FREQUENCY = 50; head->COUNT = 500; head->idcode = to_intconvertor(df->idcode); + head->next = NULL; return TRUE; } else @@ -139,6 +140,7 @@ gboolean attack_detect_vol(struct data_frame *df) headvol->AVERAGE_OF_VOLTAGE = CURR_vol; headvol->COUNT = 500; headvol->idcode = to_intconvertor(df->idcode); + headvol->next = NULL; return TRUE; } else @@ -193,4 +195,4 @@ gboolean attack_detect_freq_vol(struct data_frame *df) return attack_detect_freq(df) && attack_detect_vol(df); } -/* pavan changes */ \ No newline at end of file +/* pavan changes */