Skip to content

Commit

Permalink
🐛 (spike): Fix delay issues when playing video
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Jun 15, 2022
1 parent a82b7f7 commit 552f1d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spikes/lk_fs/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ auto main() -> int
{
sd::init();

videokit.initializeScreen();
display::corelcd.turnOn();
videokit.initializeScreen();

rtos::ThisThread::sleep_for(1s);

Expand Down Expand Up @@ -138,8 +138,12 @@ auto main() -> int
}

if (path.string().ends_with(".avi")) {
videokit.displayImage("/fs/home/img/system/robot-misc-robot-misc-screen_empty_white.jpg");
rtos::ThisThread::sleep_for(5ms);
videokit.playVideoOnce(path);
rtos::ThisThread::sleep_for(3s);
videokit.stopVideo();
rtos::ThisThread::sleep_for(5ms);
com.write("ACK_VIDEO:" + path.string());
continue;
}
Expand Down

0 comments on commit 552f1d2

Please sign in to comment.