mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
system/setting_helpers.cpp: fix unused warning on apollo
This commit is contained in:
@@ -495,11 +495,9 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
|
|||||||
|
|
||||||
void CFanControlNotifier::setSpeed(unsigned int speed)
|
void CFanControlNotifier::setSpeed(unsigned int speed)
|
||||||
{
|
{
|
||||||
#ifndef BOXMODEL_APOLLO
|
|
||||||
int cfd;
|
|
||||||
|
|
||||||
printf("FAN Speed %d\n", speed);
|
printf("FAN Speed %d\n", speed);
|
||||||
cfd = open("/dev/cs_control", O_RDONLY);
|
#ifndef BOXMODEL_APOLLO
|
||||||
|
int cfd = open("/dev/cs_control", O_RDONLY);
|
||||||
if(cfd < 0) {
|
if(cfd < 0) {
|
||||||
perror("Cannot open /dev/cs_control");
|
perror("Cannot open /dev/cs_control");
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user