diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 09:41:22 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 09:41:22 -0500 |
commit | ea3a9effca9bebfe18bfb7546da619ecbbb121f3 (patch) | |
tree | 54ceea8953098258666fe2459632470f5dc85c94 /src/lmsensorschip.cpp | |
parent | 191c434271e705161fbd01ed83b6d043a275bffc (diff) | |
download | ksensors-ea3a9effca9bebfe18bfb7546da619ecbbb121f3.tar.gz ksensors-ea3a9effca9bebfe18bfb7546da619ecbbb121f3.zip |
Apply build fixes
Diffstat (limited to 'src/lmsensorschip.cpp')
-rw-r--r-- | src/lmsensorschip.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lmsensorschip.cpp b/src/lmsensorschip.cpp index 1a15493..d78a0a9 100644 --- a/src/lmsensorschip.cpp +++ b/src/lmsensorschip.cpp @@ -50,10 +50,15 @@ const sensors_chip_name *LMSensorsChip::getChipName() void LMSensorsChip::createSensors() { if(!chip_name) return; - const sensors_feature_data *data; int nr1= 0; int nr2= 0; +#if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */ + const sensors_feature_data *data; data= sensors_get_all_features(*chip_name, &nr1, &nr2); +#else + const sensors_feature *data; + data= sensors_get_features(chip_name, &nr1); +#endif while(data) { LMSensor *sensor= new LMSensor(this); if( !sensor->init(&data,&nr1,&nr2) ) |