Event History Setup: #287

Fix Flicker Bug in Ncurses Printer by casting lls as static int;

Further Tweak to NcursesPrinter for responsiveness;
This commit is contained in:
lwvmobile
2025-05-09 21:11:23 -04:00
parent fae33ca0a1
commit 0d734b753f
2 changed files with 3 additions and 3 deletions

View File

@@ -248,7 +248,7 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
//run ncurses printer more frequently when no sync to speed up responsiveness of it during no sync period
//NOTE: Need to monitor and test this, if responsiveness issues arise, then disable this
if ( opts->use_ncurses_terminal == 1 && ((t % 600) == 0)) //t maxes out at 1800 (3 times each getFrameSync)
if ( opts->use_ncurses_terminal == 1 && ((t % 300) == 0)) //t maxes out at 1800 (6 times each getFrameSync)
ncursesPrinter(opts, state);
symbol = getSymbol (opts, state, 0);

View File

@@ -103,14 +103,14 @@ void ncursesOpen (dsd_opts * opts, dsd_state * state)
}
static int lls = -1;
void
ncursesPrinter (dsd_opts * opts, dsd_state * state)
{
uint8_t idas = 0;
int level = 0;
int c = 0;
int lls = -1;
int i = 0;
if (opts->audio_in_type != 1) //can't run getch/menu when using STDIN -