尝试修复红屏宕机

This commit is contained in:
anod 2023-04-24 14:52:49 +08:00
parent 422049a6b5
commit 440fd2e50e

View File

@ -532,12 +532,12 @@ static atp_error_t select_hostkey( atp_callerdata_t data, atp_counter_t index, a
{ {
cfg->text = key_name[index]; cfg->text = key_name[index];
cfg->value = key_val[index]; cfg->value = key_val[index];
}
if( cfg->value == key ) if( cfg->value == key )
{ {
cfg->extra_text = ''; cfg->extra_text = '';
cfg->extra_text_color = ATP_COLOR_GREEN; cfg->extra_text_color = ATP_COLOR_GREEN;
} }
}
return ATP_SUCCESS; return ATP_SUCCESS;
} }