Skip to content

Commit

Permalink
Add support for insta360 x4
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradIT committed Sep 7, 2024
1 parent fbe0a42 commit 92764c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/insta360/insta360.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ func getDeviceName(manifest string) string {
return name
}

endBytes := []byte{0x1A, 0x0F}
endBytes := []byte{0x1A}

res := bytes.Split(file, append([]byte{0x12, 0x0B}, []byte("Insta360")...))
if len(res) == 1 {
return name
}

modelName := bytes.Split(res[1], endBytes)
if len(modelName) == 1 {
return name
Expand Down

0 comments on commit 92764c4

Please sign in to comment.