Displaying 2 results from an estimated 2 matches for "attr_data_cst".
2005 Aug 04
1
a patch for apc-hid.h
...ittle earlier. Appended is an
unconditional patch for apc-hid.h.
If, as indicated by the original code, there are APC UPS devices that don't
allow setting of this variable, it becomes unfortunately necessary to
complete the following
/* TODO: verify setability/RW with (hData.Attribute != ATTR_DATA_CST) */
in hid_ups_walk() in newhidups.c in order to use this patch generically
with apc-hid.h. I would appreciate it if someone with a better understanding
of UPS HID than I would address this task.
Thank you, AG
---------------- patch for apc-hid.h ---------------------------------------
@@ -54,8...
2005 Oct 04
0
variable writability
...1 (aquette 04-May-05): {
1.1.1.1.8.1 (aquette 04-May-05): dstate_setflags(item->info_type, item->info_flags);
1.1.1.1.8.6.2.5 (aquette 10-Aug-05): /* Verify variable setability/RW */
1.1.1.1.8.6.2.5 (aquette 10-Aug-05): if (get_current_data_attribute() != ATTR_DATA_CST)
1.1.1.1.8.6.2.5 (aquette 10-Aug-05): dstate_setflags(item->info_type, ST_FLAG_RW);
1.1.1.1.8.1 (aquette 04-May-05): }
I think that these three lines are a bug, because they cause the
ST_FLAG_RW flag to be set on all variables, whether or not they are
declared writable....