forked from enlightenment/enlightenment
Check if the sensor name has been set
SVN revision: 23231
This commit is contained in:
parent
0b853ce1dc
commit
d048e276b4
|
@ -103,6 +103,9 @@ _fill_data(E_Config_Dialog_Data *cfdata)
|
|||
else if (p > TEMP_HIGH_MID)
|
||||
cfdata->high_method = TEMP_HIGH_HIGH;
|
||||
|
||||
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"))
|
||||
|
@ -110,6 +113,7 @@ _fill_data(E_Config_Dialog_Data *cfdata)
|
|||
else if (!strcmp(temperature_config->sensor_name, "temp3"))
|
||||
cfdata->sensor = 2;
|
||||
}
|
||||
}
|
||||
|
||||
static void *
|
||||
_create_data(E_Config_Dialog *cfd)
|
||||
|
|
Loading…
Reference in New Issue