Trying to make less calls to dtu, making it "multithreaded"
This commit is contained in:
parent
9c3ed916b5
commit
ad4ff13be0
7 changed files with 37 additions and 32 deletions
|
|
@ -29,6 +29,8 @@ void Microinverter::populatePorts() {
|
|||
this->modbus_context_mutex->lock();
|
||||
registerCount = modbus_read_registers(*this->modbus_context.get(), portStartAddress + 0x0021, 1, readArray);
|
||||
this->modbus_context_mutex->unlock();
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue