Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #273 from tango-controls/issue-271
Browse files Browse the repository at this point in the history
DeviceAttribute.is_empty was not correctly with latest cpp tango version
  • Loading branch information
ajoubertza authored Apr 11, 2019
2 parents 77a2264 + bfdc6bb commit 6179390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/device_attribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ namespace PyDeviceAttribute

// self.get_type() already does self.is_empty()
const int data_type = self.get_type();
const bool is_empty = data_type < 0;
const bool is_empty = ((data_type < 0) || (data_type == Tango::DATA_TYPE_UNKNOWN));
const bool has_failed = self.has_failed();
Tango::AttrDataFormat data_format = self.get_data_format();

Expand Down

0 comments on commit 6179390

Please sign in to comment.