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:
[CST] Focus
2013-07-18 14:38:39 +04:00
parent ad6e65d08e
commit 0e30a1f501
2 changed files with 11 additions and 0 deletions

View File

@@ -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)