[Nut-upsdev] [nut-commits] svn commit r1043 - in trunk: . docs

Peter Selinger selinger at mathstat.dal.ca
Sun Aug 12 12:38:56 UTC 2007

Arjen de Korte wrote:
> > I think the following three lines are typos, should be alarm_set():
> >
> >      status_set("Replace battery!");
> >      status_set("Awaiting power!");
> >      status_set("Emergency stop!");
> Quite right. I will change this anyway, since I don't like the requirement
> that alarms *must* be defined in usbhid-ups. Subdrivers should be able to
> set their own alarms (besides the ones that can be considered 'common'),
> without the need of modifying usbhid-ups. I already have an idea how to do
> this and will post a first go at this later today.

This is fine, as long as no logic is needed to combine flags. That
would have to be dealt with in usbhid-ups.c, see my previous
message. I suppose that could still be done using the existing
status_bit_t mechanism.

Moving most alarms to subdrivers will also have the effect of
discouraging uniform alarm messages. I think they should be uniform at
least within a given driver (usbhid-ups). For example, Belkin and
Tripplite both have AWAITINGPOWER.

-- Peter

More information about the Nut-upsdev mailing list