mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-08 14:18:29 +02:00
neutrino: change all remote/frontpanel stuff to use the new headers.
Origin commit data
------------------
Commit: 83636ebb6e
Author: [CST] Bas <bas@coolstreamtech.com>
Date: 2012-09-25 (Tue, 25 Sep 2012)
This commit is contained in:
@@ -33,8 +33,8 @@
|
||||
#include <timerdclient/timerdclient.h>
|
||||
#include <timerdclient/timerdmsg.h>
|
||||
#include <sectionsdclient/sectionsdclient.h>
|
||||
#if HAVE_COOL_HARDWARE
|
||||
#include <coolstream/cs_vfd.h>
|
||||
#ifdef HAVE_COOLSTREAM_CS_FRONTPANEL_H
|
||||
#include <coolstream/cs_frontpanel.h>
|
||||
#endif
|
||||
|
||||
#include <vector>
|
||||
@@ -79,11 +79,11 @@ void CTimerManager::Init(void)
|
||||
if (fd < 0) {
|
||||
perror("/dev/display");
|
||||
} else {
|
||||
wakeup_data_t wk;
|
||||
fp_wakeup_data_t wk;
|
||||
memset(&wk, 0, sizeof(wk));
|
||||
int ret = ioctl(fd, IOC_VFD_GET_WAKEUP, &wk);
|
||||
int ret = ioctl(fd, IOC_FP_GET_WAKEUP, &wk);
|
||||
if(ret >= 0)
|
||||
wakeup = ((wk.source == WAKEUP_SOURCE_TIMER) /* || (wk.source == WAKEUP_SOURCE_PWLOST)*/);
|
||||
wakeup = ((wk.source == FP_WAKEUP_SOURCE_TIMER) /* || (wk.source == WAKEUP_SOURCE_PWLOST)*/);
|
||||
close(fd);
|
||||
}
|
||||
printf("[timerd] wakeup from standby: %s\n", wakeup ? "yes" : "no");
|
||||
|
Reference in New Issue
Block a user