aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Tone.cpp
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2015-01-26 17:04:26 +0100
committerMatthijs Kooijman <matthijs@stdin.nl>2015-01-26 17:04:26 +0100
commit230f987ba6aa247f8b7ade116283161705e90406 (patch)
treeea1bb5eb3e02bc1de56502bbb8e27fdd8281875d /cores/arduino/Tone.cpp
parent827c349a17e319d33f048ee402835bd40f9e42b6 (diff)
Prevent low pulse on TX initialization in SoftwareSerial
Previously, the TX pin would be set to output first and then written high (assuming non-inverted logic). When the pin was previously configured for input without pullup (which is normal reset state), this results in driving the pin low for a short when initializing. This could accidenttally be seen as a stop bit by the receiving side. By first writing HIGH and then setting the mode to OUTPUT, the pin will have its pullup enabled for a short while, which is harmless.
Diffstat (limited to 'cores/arduino/Tone.cpp')
0 files changed, 0 insertions, 0 deletions