SoftwareSerial sets pinMode in its constructor which is too soon #3041
Labels
Component: Core
Related to the code for the standard Arduino API
Library: SoftwareSerial
The SoftwareSerial Arduino library
In version 1.6.0 (at least) of the IDE the constructor for SoftwareSerial does this:
setTX does this:
This is not an appropriate time to be doing pinMode or digitalWrite because init() has not been called yet. Who knows what init will do with pins? It might set them all to inputs, for example.
The text was updated successfully, but these errors were encountered: