Skip to content

Commit

Permalink
add the print and println methods, still untested
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcarter committed Jul 15, 2013
1 parent 6bca623 commit 760cba4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/lib/DinoSerial.cpp
Expand Up @@ -20,9 +20,11 @@ int *DinoSerial::parse(char *aux){

void DinoSerial::process(int cmd, char *message) {
switch(cmd) {
case 0: setPins(message); break;
case 1: beginSerial(message); break;
default: break;
case 0: setPins(message); break;
case 1: beginSerial(message); break;
case 2: softSerial.print(message); break;
case 3: softserial.println(message); break;
default: break;
}
}

Expand All @@ -37,4 +39,4 @@ void DinoSerial::beginSerial(char *aux) {
int *values = parse(aux);
// set baud rate
softSerial.begin(values[0]);
}
}

0 comments on commit 760cba4

Please sign in to comment.