Skip to content

Commit

Permalink
Fix bug then device not switch thread in delay
Browse files Browse the repository at this point in the history
  • Loading branch information
DiSlord committed Sep 18, 2024
1 parent 174c56f commit 1ba7d1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vna_modules/vna_browser.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ static void browser_open_file(int sel) {
else key = 1;
touch_wait_release();
}
chThdSleepMilliseconds(100);
//chThdSleepMilliseconds(100); // Device hang after ~2min in this place, not switch thread back
delayMilliseconds(100);
int old_sel = sel;
if (key == 0) {if (--sel < 0) sel = file_count - 1;}
else if (key == 1) {if (++sel > file_count - 1) sel = 0;}
Expand Down

0 comments on commit 1ba7d1a

Please sign in to comment.