Skip to content

Commit 70823f2

Browse files
more notes
1 parent 1c54e7d commit 70823f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎fault_injector/fault_injector.ino‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ int counter = 0;
5757

5858
// Declare States of Operation in Fault Pin
5959
void state_declaration(int state) {
60-
if (state == 0) {
60+
if (state == 0) { // 0 state means signal is low usually and gets high during the glitch
6161
normalState = 0x0;
6262
faultState = 0x1;
63-
} else if (state == 1) {
63+
} else if (state == 1) { // 1 state means signal is high usually and gets low during the glitch
6464
normalState = 0x1;
6565
faultState = 0x0;
6666
} else {

0 commit comments

Comments
 (0)