File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
libraries/Robot_Control/src Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ void Stream::setTimeout(unsigned long timeout) // sets the maximum number of mi
7575 // find returns true if the target string is found
7676bool Stream::find (char *target)
7777{
78- return findUntil (target, NULL );
78+ return findUntil (target, " " );
7979}
8080
8181// reads data from the stream until the target string of given length is found
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ struct ring_buffer;
3636class Serial_ : public Stream
3737{
3838private:
39- int peek_buffer;
39+ int peek_buffer = - 1 ;
4040public:
4141 void begin (unsigned long );
4242 void begin (unsigned long , uint8_t );
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ void Stream::setTimeout(unsigned long timeout) // sets the maximum number of mi
7575 // find returns true if the target string is found
7676bool Stream::find (char *target)
7777{
78- return findUntil (target, NULL );
78+ return findUntil (target, " " );
7979}
8080
8181// reads data from the stream until the target string of given length is found
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ void RobotControl::playMelody(char* script){
4040 case ' C' : playNote (202 , time, modifier); break ; // Play a C#
4141 case ' d' : playNote (190 , time, modifier); break ; // Play a D
4242 case ' D' : playNote (180 , time, modifier); break ; // Play a D#
43- case ' e' : playNote (170 , time, modifier); break ; // Play an F
43+ case ' e' : playNote (170 , time, modifier); break ; // Play an E
4444 case ' f' : playNote (160 , time, modifier); break ; // Play an F
4545 case ' F' : playNote (151 , time, modifier); break ; // Play an F#
4646 case ' g' : playNote (143 , time, modifier); break ; // Play a G
@@ -97,4 +97,4 @@ void RobotControl::playFile(char* filename){
9797
9898void RobotControl::stopPlayFile (){
9999 melody.close ();
100- }
100+ }
You can’t perform that action at this time.
0 commit comments