You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file SoftwareSerial.cpp, SoftwareSerial::write(uint8_t b) does not use "inverse logic".
I changed some lines...
Sketch
size_tSoftwareSerial::write(uint8_t b) {
if (!m_txValid) return0;
if (m_invert) b = ~b;
// Disable interrupts in order to get a clean transmitcli();
if (m_txEnableValid) digitalWrite(m_txEnablePin, HIGH);
unsignedlongwait = m_bitTime;
digitalWrite(m_txPin,!m_invert ? HIGH : LOW);
unsignedlong start = ESP.getCycleCount();
// Start bit;digitalWrite(m_txPin, !m_invert ? LOW : HIGH );
WAIT;
for (int i = 0; i < 8; i++) {
digitalWrite(m_txPin, (b & 1) ? HIGH : LOW);
WAIT;
b >>= 1;
}
// Stop bitdigitalWrite(m_txPin, !m_invert ? HIGH : LOW);
WAIT;
if (m_txEnableValid) digitalWrite(m_txEnablePin, LOW);
sei();
return1;
}
The text was updated successfully, but these errors were encountered:
@igrr I am using latest git, and the SoftwareSerial lib is not in the directory structure. However, it is present under the 2.3.0 release directory structure. I assume that means that it gets packaged in the release process. Exactly how is it pulled in, and which version is used?
Basic Infos
Hardware
Hardware: NodeMcu
Description
In file SoftwareSerial.cpp, SoftwareSerial::write(uint8_t b) does not use "inverse logic".
I changed some lines...
Sketch
The text was updated successfully, but these errors were encountered: