mirror of
https://github.com/anklimov/lighthub
synced 2025-12-09 05:09:49 +03:00
Massive kernel logic refaktoring & critical memory issues fixes. HomeRemote compatibility, Modbus command retrying, MQTT Status async/submission optimization
This commit is contained in:
@@ -86,7 +86,7 @@ int owUpdate() {
|
||||
|
||||
int owSetup(owChangedType owCh) {
|
||||
//// todo - move memory allocation to here
|
||||
|
||||
if (net) return true; // Already initialized
|
||||
#ifdef DS2482_100_I2C_TO_1W_BRIDGE
|
||||
Serial.println(F("DS2482_100_I2C_TO_1W_BRIDGE init"));
|
||||
net = new OneWire;
|
||||
@@ -182,6 +182,7 @@ int owFind(DeviceAddress addr) {
|
||||
}
|
||||
|
||||
void owAdd(DeviceAddress addr) {
|
||||
if (t_count>=t_max) return;
|
||||
wstat[t_count] = SW_FIND; //Newly detected
|
||||
memcpy(term[t_count], addr, 8);
|
||||
//term[t_count]=addr;
|
||||
|
||||
Reference in New Issue
Block a user