Skip to content

Commit 7f9e9b1

Browse files
committed
Merge branch 'master' into HEAD
2 parents c387f87 + d2b6f9f commit 7f9e9b1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

hardware/arduino/avr/cores/arduino/Stream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
7676
bool 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

hardware/arduino/avr/cores/arduino/USBAPI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct ring_buffer;
3636
class Serial_ : public Stream
3737
{
3838
private:
39-
int peek_buffer;
39+
int peek_buffer = -1;
4040
public:
4141
void begin(unsigned long);
4242
void begin(unsigned long, uint8_t);

hardware/arduino/sam/cores/arduino/Stream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
7676
bool 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

libraries/Robot_Control/src/Melody.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

9898
void RobotControl::stopPlayFile(){
9999
melody.close();
100-
}
100+
}

0 commit comments

Comments
 (0)