Trying to make less calls to dtu, making it "multithreaded"

This commit is contained in:
TraYali 2024-03-18 00:54:10 +01:00
parent 9c3ed916b5
commit ad4ff13be0
7 changed files with 37 additions and 32 deletions

View file

@ -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;
}
}