There was an error while loading. Please reload this page.
1 parent 1c54e7d commit 70823f2Copy full SHA for 70823f2
fault_injector/fault_injector.ino
@@ -57,10 +57,10 @@ int counter = 0;
57
58
// Declare States of Operation in Fault Pin
59
void state_declaration(int state) {
60
- if (state == 0) {
+ if (state == 0) { // 0 state means signal is low usually and gets high during the glitch
61
normalState = 0x0;
62
faultState = 0x1;
63
- } else if (state == 1) {
+ } else if (state == 1) { // 1 state means signal is high usually and gets low during the glitch
64
normalState = 0x1;
65
faultState = 0x0;
66
} else {
0 commit comments