Skip to content

Commit 5d44910

Browse files
authored
Merge pull request #21 from paulfersi/fix/sync-local-time
Fix SyncLocalTimeToCamera call for latest Insta360 SDK
2 parents 8fc18bc + 3c306f6 commit 5d44910

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@ class CameraWrapper {
121121
cam->SetStreamDelegate(delegate);
122122

123123
auto start = time(NULL);
124-
cam->SyncLocalTimeToCamera(start);
124+
125+
uint64_t utc_time = static_cast<uint64_t>(start);
126+
uint32_t offset_time = 0; //no offset from UTC
127+
128+
cam->SyncLocalTimeToCamera(utc_time,offset_time);
125129
ins_camera::LiveStreamParam param;
126130
param.video_resolution = ins_camera::VideoResolution::RES_1920_960P30; //Change this line to edit the resolution
127131
//Possible resolutions (results may vary per model) are:

0 commit comments

Comments
 (0)