Skip to content

Commit

Permalink
Add support for insta360 x4 (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradIT authored Sep 7, 2024
1 parent fbe0a42 commit a7fac7f
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 a7fac7f

Please sign in to comment.