Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated to Arduino 1.0 code.

Fixed reset-bug (Thank you knorke74 !)
  • Loading branch information...
commit 055062cfefdb7eadc48e844bd3d7d14525d3bae5 1 parent 15e2b0c
@SammyIAm SammyIAm authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 Arduino/Moppy/{Moppy.pde → Moppy.ino}
View
5 Arduino/Moppy/Moppy.pde → Arduino/Moppy/Moppy.ino
@@ -89,7 +89,10 @@ void loop(){
//Watch for special 100-message to reset the drives
if (Serial.peek() == 100) {
resetAll();
- Serial.flush();
+ //Flush any remaining messages.
+ while(Serial.available() > 0){
+ Serial.read();
+ }
}
else{
currentPeriod[Serial.read()] = (Serial.read() << 8) | Serial.read();
Please sign in to comment.
Something went wrong with that request. Please try again.