SNeutrinoSettings: convert more char[...] configuration values to std::string

This commit is contained in:
M. Liebmann
2014-01-18 17:11:12 +01:00
parent afbd87083b
commit 004aa84e32
7 changed files with 33 additions and 35 deletions

View File

@@ -117,8 +117,8 @@ void CVFD::count_down() {
void CVFD::wake_up() {
if(!has_lcd) return;
if (atoi(g_settings.lcd_setting_dim_time) > 0) {
timeout_cnt = atoi(g_settings.lcd_setting_dim_time);
if (atoi(g_settings.lcd_setting_dim_time.c_str()) > 0) {
timeout_cnt = atoi(g_settings.lcd_setting_dim_time.c_str());
g_settings.lcd_setting_dim_brightness > -1 ?
setBrightness(g_settings.lcd_setting[SNeutrinoSettings::LCD_BRIGHTNESS]) : setPower(1);
}