The live data also works now, but I have some refactoring to do

This commit is contained in:
2024-10-29 14:52:40 +00:00
parent dbf30c1d4e
commit 422d90e98a
7 changed files with 338 additions and 161 deletions
+3
View File
@@ -66,6 +66,9 @@ func (th *TelemetryHeaders) ToString() string {
// buffer.
// You need to pass a the first FILE_HEADER_SIZE bytes of the buffer
func parseTelemetryHeader(buf [FileHeaderSize]byte) (*TelemetryHeaders, error) {
// utils.HexDump(buf[:])
// fmt.Printf("Len: %d\n", len(buf))
if len(buf)%HeaderSize != 0 {
return nil, fmt.Errorf("buffer must be multiple of size: %d", HeaderSize)
}