Skip to content

Commit d88d261

Browse files
committed
Change SoftwareSerial to inherit from Stream
Change SS to inherit from Stream instead of Print. There are some libraries that expect softwareSerial to have functions like find() and setTimeout(). This fixes those 'function not found' errors.
1 parent a289272 commit d88d261

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)