Remove unnecicary loop

This commit is contained in:
Kenwood 2021-07-04 20:34:15 -04:00
parent f34cb81c7a
commit 13eb27b9c3
1 changed files with 2 additions and 4 deletions

View File

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