Skip to content

Commit eacbb0b

Browse files
committed
remove stopIfFault from code and put in library
functions belong in the library not the code
1 parent f72b94b commit eacbb0b

File tree

1 file changed

+0
-25
lines changed
  • DualVNH5019MotorShieldMod3/examples/Demo

1 file changed

+0
-25
lines changed

DualVNH5019MotorShieldMod3/examples/Demo/Demo.ino

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,6 @@
77
// this lets the single motor be controlled as if it were "motor 1"
88
DualVNH5019MotorShieldMod3 md;//Use default pins
99

10-
11-
void stopIfFault()
12-
{
13-
if (md.getM1Fault())
14-
{
15-
Serial.println("M1 fault");
16-
while(1);
17-
}
18-
if (md.getM2Fault())
19-
{
20-
Serial.println("M2 fault");
21-
while(1);
22-
}
23-
if (md.getM3Fault())
24-
{
25-
Serial.println("M3 fault");
26-
while(1);
27-
}
28-
if (md.getM4Fault())
29-
{
30-
Serial.println("M4 fault");
31-
while(1);
32-
}
33-
}
34-
3510
void setup()
3611
{
3712
// Open serial communications and wait for port to open:

0 commit comments

Comments
 (0)