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) else if (p > TEMP_HIGH_MID)
cfdata->high_method = TEMP_HIGH_HIGH; cfdata->high_method = TEMP_HIGH_HIGH;
if (!strcmp(temperature_config->sensor_name, "temp1")) cfdata->sensor = 0;
cfdata->sensor = 0; if (temperature_config->sensor_name)
else if (!strcmp(temperature_config->sensor_name, "temp2")) {
cfdata->sensor = 1; if (!strcmp(temperature_config->sensor_name, "temp1"))
else if (!strcmp(temperature_config->sensor_name, "temp3")) cfdata->sensor = 0;
cfdata->sensor = 2; else if (!strcmp(temperature_config->sensor_name, "temp2"))
cfdata->sensor = 1;
else if (!strcmp(temperature_config->sensor_name, "temp3"))
cfdata->sensor = 2;
}
} }
static void * static void *