mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 10:51:05 +02:00
driver/vfd.cpp: add buttons backlight control
Origin commit data
------------------
Commit: cde862081f
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-07-18 (Thu, 18 Jul 2013)
This commit is contained in:
@@ -199,6 +199,16 @@ void CVFD::setled(int led1, int led2){
|
||||
}
|
||||
}
|
||||
|
||||
void CVFD::setBacklight(bool on_off)
|
||||
{
|
||||
f(cs_get_revision() != 9)
|
||||
return;
|
||||
|
||||
int led = on_off ? FP_LED_3_ON : FP_LED_3_OFF;
|
||||
if (ioctl(fd, IOC_FP_LED_CTRL, led) < 0)
|
||||
perror("FP_LED_3");
|
||||
}
|
||||
|
||||
void CVFD::setled(bool on_off)
|
||||
{
|
||||
if(g_settings.led_rec_mode == 0)
|
||||
|
Reference in New Issue
Block a user