diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 5c0a6c22..3756b5bf 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -2094,7 +2094,7 @@ void read_payload() // Serial.print(rotation); // Serial.print(" "); // Serial.println(acceleration); - } + if (acceleration > 1.2) led_set(greenLED, HIGH); else @@ -2103,8 +2103,9 @@ void read_payload() if (rotation > 5) led_set(blueLED, HIGH); else - led_set(blueLED, LOW); - } + led_set(blueLED, LOW); + } + } } if (Serial1.available() > 0) {