Skip to content

Commit a7fac7f

Browse files
authored
Add support for insta360 x4 (#140)
1 parent fbe0a42 commit a7fac7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/insta360/insta360.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ func getDeviceName(manifest string) string {
2828
return name
2929
}
3030

31-
endBytes := []byte{0x1A, 0x0F}
31+
endBytes := []byte{0x1A}
3232

3333
res := bytes.Split(file, append([]byte{0x12, 0x0B}, []byte("Insta360")...))
3434
if len(res) == 1 {
3535
return name
3636
}
37+
3738
modelName := bytes.Split(res[1], endBytes)
3839
if len(modelName) == 1 {
3940
return name

0 commit comments

Comments
 (0)