Skip to content

MinorChanges: SoftwareSerial for RS485 #1300

Open
@ploeffler

Description

@ploeffler

Todo:
+) include SoftwareSerial to drivers
+) include espsoftwareserial to drivers

Changes in File MySensors.h
replace line 372 with

#if defined(MY_RS485_SWSERIAL) #if defined(ESP8266) || defined(ESP32) #include "drivers/ESPSoftwareSerial/SoftwareSerial.cpp" #elif #include "drivers/SoftwareSerial/SoftwareSerial.cpp" #endif #elif #include "drivers/AltSoftSerial/AltSoftSerial.cpp" #endif

File hal/transport/RS485/MyTransportRS485.cpp
replace line 90 with:

#if defined(MY_RS485_SWSERIAL) SoftwareSerial& _dev = MY_RS485_SWSERIAL; #elif #include "drivers/AltSoftSerial/AltSoftSerial.cpp" #endif

thank you! (sorry for the formating)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions