Check if the sensor name has been set

SVN revision: 23231
This commit is contained in:
sebastid 2006-06-07 08:34:10 +00:00 committed by sebastid
parent 0b853ce1dc
commit d048e276b4
1 changed files with 10 additions and 6 deletions

View File

@ -103,12 +103,16 @@ _fill_data(E_Config_Dialog_Data *cfdata)
else if (p > TEMP_HIGH_MID)
cfdata->high_method = TEMP_HIGH_HIGH;
if (!strcmp(temperature_config->sensor_name, "temp1"))
cfdata->sensor = 0;
else if (!strcmp(temperature_config->sensor_name, "temp2"))
cfdata->sensor = 1;
else if (!strcmp(temperature_config->sensor_name, "temp3"))
cfdata->sensor = 2;
cfdata->sensor = 0;
if (temperature_config->sensor_name)
{
if (!strcmp(temperature_config->sensor_name, "temp1"))
cfdata->sensor = 0;
else if (!strcmp(temperature_config->sensor_name, "temp2"))
cfdata->sensor = 1;
else if (!strcmp(temperature_config->sensor_name, "temp3"))
cfdata->sensor = 2;
}
}
static void *