Add log view, manual transfer
This commit is contained in:
@@ -56,7 +56,7 @@ final class TemperatureDataTransfer {
|
||||
|
||||
func add(data: Data, offset: Int, count: Int) {
|
||||
guard currentByteIndex == offset else {
|
||||
print("Discarding \(data.count) bytes at offset \(offset), expected \(currentByteIndex)")
|
||||
log.warning("Discarding \(data.count) bytes at offset \(offset), expected \(currentByteIndex)")
|
||||
return
|
||||
}
|
||||
dataBuffer.append(data)
|
||||
|
Reference in New Issue
Block a user