Fix sysfs write operations

Cette révision appartient à :
Chris Freehill a révisé 2019-02-25 15:14:46 -06:00
1 Parent 021f13a68f
révision 4771996d99
1 fichier modifié
+4 -3
+4 -3
Voir le fichier
@@ -129,9 +129,10 @@ int Device::openSysfsFileStream(DevInfoTypes type, T *fs, bool write) {
if (env_->path_DRM_root_override && type == env_->enum_override) {
sysfs_path = env_->path_DRM_root_override;
}
if (write) {
sysfs_path += ".write";
if (write) {
sysfs_path += ".write";
}
}
sysfs_path += "/device/";