Skip to content

Commit 8ddcb5b

Browse files
authored
Merge pull request #64 from sparkfun/streamSoftwareSerial
Change SoftwareSerial to inherit from Stream
2 parents 1c73dd6 + d88d261 commit 8ddcb5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/SoftwareSerial/src/SoftwareSerial.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@
3838
#ifndef _SoftwareSerial_H
3939
#define _SoftwareSerial_H
4040
#include "Arduino.h"
41+
#include <Stream.h>
4142

4243
#define AP3_SS_BUFFER_SIZE 128 //Limit to 8 bits
4344

4445
#define TIMER_FREQ 3000000L
4546

46-
class SoftwareSerial : public Print
47+
class SoftwareSerial : public Stream
4748
{
4849
public:
4950
SoftwareSerial(uint8_t rxPin, uint8_t txPin, bool invertLogic = false);

0 commit comments

Comments
 (0)