Fix edge case that could prevent tooth log completing its transmission

This commit is contained in:
Josh Stewart 2022-04-21 13:37:18 +10:00
parent b7c02b53d6
commit bce129cb68
2 changed files with 3 additions and 2 deletions

View File

@ -5223,7 +5223,7 @@ cmdVSSratio6 = "E\x99\x06"
dataReadTimeout = 5000 ; time in ms
continuousRead = true
dataReadyCondition = { toothLog1Ready == 1 }
dataLength = 508; in bytes, including headers, footers and data (not used). 4 bytes * 127 entries
dataLength = 508; in bytes, including headers, footers and data (not used). 4 bytes * 127 entries (TOOTH_LOG_SIZE)
;dataLength = 128 ; in bytes, including headers, footers and data (not used)
;recordDef = headerLen. footerLen, recordLen

View File

@ -964,6 +964,7 @@ void sendToothLog(byte startOffset)
//tx buffer is full. Store the current state so it can be resumed later
inProgressOffset = x;
toothLogSendInProgress = true;
legacySerial = false;
return;
}
@ -1036,7 +1037,7 @@ void sendCompositeLog(byte startOffset)
//tx buffer is full. Store the current state so it can be resumed later
inProgressOffset = x;
compositeLogSendInProgress = true;
legacySerial = false;
return;
}