diff --git a/src/driver/vfd.cpp b/src/driver/vfd.cpp index 130e5357c..009cfacdb 100644 --- a/src/driver/vfd.cpp +++ b/src/driver/vfd.cpp @@ -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) diff --git a/src/driver/vfd.h b/src/driver/vfd.h index 5060069c8..d4192eb83 100644 --- a/src/driver/vfd.h +++ b/src/driver/vfd.h @@ -106,6 +106,7 @@ class CVFD void setlcdparameter(void); void setled(void); void setled(bool on_off); + void setBacklight(bool on_off); static CVFD* getInstance(); void init(const char * fontfile, const char * fontname);