Compare commits

..

2 Commits

Author SHA1 Message Date
pavanvpatil 9fbe63af48
Error again fixed 2022-10-30 09:34:58 +05:30
pavanvpatil 8b22a3a67e
Error fixed in attack detect 2022-10-30 09:29:23 +05:30
1 changed files with 5 additions and 1 deletions

View File

@ -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
@ -86,6 +87,7 @@ gboolean attack_detect_freq(struct data_frame *df)
bring->AVERAGE_OF_FREQUENCY = 50;
bring->COUNT = 500;
bring->idcode = to_intconvertor(df->idcode);
bring->next = NULL;
previous->next = bring;
return TRUE;
}
@ -139,6 +141,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
@ -183,6 +186,7 @@ gboolean attack_detect_vol(struct data_frame *df)
bring->COUNT = 500;
previous->next = bring;
bring->idcode = to_intconvertor(df->idcode);
bring->next = NULL;
return TRUE;
}
}