Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 21818a6

Browse files
Updated setup loop
- Added the zeroing of the roation array
1 parent 87ec21a commit 21818a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arduino_control/arduino_control.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ void setup() {
4343
// set array values
4444
memset(sensor_value1, 0, sizeof(sensor_value1));
4545
memset(sensor_value2, 0, sizeof(sensor_value2));
46-
46+
memset(rotation_int, 0, sizeof(rotation_int));
47+
4748
for (int i=0; i<NUMBER_OF_MOTORS; i++) {
4849
rotation_direction[i] = "";
4950
}

0 commit comments

Comments
 (0)