diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-09-19 11:06:59 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-09-19 11:06:59 -0400 |
commit | fd3246c8939d3db256d7aaa85343094df84abfd8 (patch) | |
tree | 26cd0ac109178925159508d9479f4f2d02cd5c7b /instr-daemon.c | |
parent | 8dd603c8036f4eafd440ac14234d42d6c5eaefab (diff) |
added a power fail input pin (low = OK, high = bad)
Diffstat (limited to 'instr-daemon.c')
-rw-r--r-- | instr-daemon.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/instr-daemon.c b/instr-daemon.c index d749721..c03236b 100644 --- a/instr-daemon.c +++ b/instr-daemon.c @@ -311,6 +311,11 @@ int main(int argc, char **argv) static gboolean periodic_poll (void) { + if (bus_getpin (POWER_FAIL)) { + printf ("power fail detected\n"); + } else { + printf ("power OK\n"); + } Menu_Check_Buttons (); |