mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-04-03 21:32:54 +00:00
Memory optimization and bugfix
This commit is contained in:
@@ -167,6 +167,14 @@ int DlmsReader::GetRawData(byte *dataBuffer, int start, int length)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int DlmsReader::getBytesRead() {
|
||||
return dataLength - (3 + destinationAddressLength + sourceAddressLength + 2 + 1);
|
||||
}
|
||||
|
||||
byte* DlmsReader::getBuffer() {
|
||||
return buffer + (3 + destinationAddressLength + sourceAddressLength + 2 + 1);
|
||||
}
|
||||
|
||||
int DlmsReader::GetAddress(int addressPosition, byte* addressBuffer, int start, int length)
|
||||
{
|
||||
int addressBufferPos = start;
|
||||
|
||||
Reference in New Issue
Block a user