mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
system/setting_helpers.cpp: dont use IOC_CONTROL_PWM_SPEED on apollo
This commit is contained in:
@@ -495,6 +495,7 @@ 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;
|
int cfd;
|
||||||
|
|
||||||
printf("FAN Speed %d\n", speed);
|
printf("FAN Speed %d\n", speed);
|
||||||
@@ -507,6 +508,7 @@ void CFanControlNotifier::setSpeed(unsigned int speed)
|
|||||||
perror("IOC_CONTROL_PWM_SPEED");
|
perror("IOC_CONTROL_PWM_SPEED");
|
||||||
|
|
||||||
close(cfd);
|
close(cfd);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CFanControlNotifier::changeNotify(const neutrino_locale_t, void * data)
|
bool CFanControlNotifier::changeNotify(const neutrino_locale_t, void * data)
|
||||||
|
Reference in New Issue
Block a user