Remove unnecicary loop

This commit is contained in:
2021-07-04 20:34:15 -04:00
parent f34cb81c7a
commit 13eb27b9c3

View File

@@ -33,10 +33,8 @@ void loop() {
// This method runs when we receive a message
void receiveEvent(int n) {
while (Wire.available()) { // loop through all but the last
id = Wire.read(); // ID of the servo/device to access
val = Wire.read(); // Value to assign
}
id = Wire.read(); // ID of the servo/device to access
val = Wire.read(); // Value to assign
switch(id) {
case 1: