1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 18:03:45 +02:00

Neil bugfixes. (#186)

* Re-enable native I2C driver.

* Minor non-functional changes to native I2C Manager.

* Minor changes to make variable types explicit in comparisons.

* Fix IODevice::loop() to avoid null pointer dereference.

Strange problems with LCD driver tracked down to being caused by a call to p->_loop() when p is NULL.

* Correct sense of comparison in LCN support function Turnout::setClosedStateOnly()

* Remove code (now unused) from LCD driver.

* Add I2C textual error messages.

* Add I2C textual error messages.

* Fix compile error in 4809 I2C driver.

* Remove init function call from SSD1306 driver.
This commit is contained in:
Neil McKechnie
2021-08-26 23:04:13 +01:00
committed by GitHub
parent 5e30740c5b
commit 0a9fcf6ebc
11 changed files with 86 additions and 53 deletions

View File

@@ -107,7 +107,7 @@
bool Turnout::setClosedStateOnly(uint16_t id, bool close) {
Turnout *tt = get(id);
if (tt) return false;
if (!tt) return false;
tt->_turnoutData.closed = close;
return true;
}