Fix edge case that could prevent tooth log completing its transmission
This commit is contained in:
parent
b7c02b53d6
commit
bce129cb68
|
@ -5223,7 +5223,7 @@ cmdVSSratio6 = "E\x99\x06"
|
||||||
dataReadTimeout = 5000 ; time in ms
|
dataReadTimeout = 5000 ; time in ms
|
||||||
continuousRead = true
|
continuousRead = true
|
||||||
dataReadyCondition = { toothLog1Ready == 1 }
|
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)
|
;dataLength = 128 ; in bytes, including headers, footers and data (not used)
|
||||||
|
|
||||||
;recordDef = headerLen. footerLen, recordLen
|
;recordDef = headerLen. footerLen, recordLen
|
||||||
|
|
|
@ -964,6 +964,7 @@ void sendToothLog(byte startOffset)
|
||||||
//tx buffer is full. Store the current state so it can be resumed later
|
//tx buffer is full. Store the current state so it can be resumed later
|
||||||
inProgressOffset = x;
|
inProgressOffset = x;
|
||||||
toothLogSendInProgress = true;
|
toothLogSendInProgress = true;
|
||||||
|
legacySerial = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1036,7 +1037,7 @@ void sendCompositeLog(byte startOffset)
|
||||||
//tx buffer is full. Store the current state so it can be resumed later
|
//tx buffer is full. Store the current state so it can be resumed later
|
||||||
inProgressOffset = x;
|
inProgressOffset = x;
|
||||||
compositeLogSendInProgress = true;
|
compositeLogSendInProgress = true;
|
||||||
|
legacySerial = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue