mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
neutrino: Rename hardware defined macros for coolstream stb
BOXMODEL_NEVIS => BOXMODEL_CS_HD1 BOXMODEL_APOLLO => BOXMODEL_CS_HD2
This commit is contained in:
@@ -71,7 +71,7 @@ CVFD::CVFD()
|
||||
has_led_segment = false;
|
||||
}
|
||||
|
||||
#ifdef BOXMODEL_APOLLO
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
if (fd >= 0) {
|
||||
int ret = ioctl(fd, IOC_FP_GET_DISPLAY_CAPS, &caps);
|
||||
if (ret < 0) {
|
||||
@@ -372,7 +372,7 @@ void CVFD::showTime(bool force)
|
||||
ShowText(timestr);
|
||||
} else if (support_numbers && has_led_segment) {
|
||||
ShowNumber((t->tm_hour*100) + t->tm_min);
|
||||
#ifdef BOXMODEL_APOLLO
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
ioctl(fd, IOC_FP_SET_COLON, 0x01);
|
||||
#endif
|
||||
}
|
||||
@@ -564,7 +564,7 @@ void CVFD::setMode(const MODES m, const char * const title)
|
||||
if(fd < 0) return;
|
||||
|
||||
// Clear colon in display if it is still there
|
||||
#ifdef BOXMODEL_APOLLO
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
if (support_numbers && has_led_segment)
|
||||
ioctl(fd, IOC_FP_SET_COLON, 0x00);
|
||||
#endif
|
||||
@@ -815,7 +815,7 @@ void CVFD::ShowNumber(int number)
|
||||
if (number < 0)
|
||||
return;
|
||||
|
||||
#ifdef BOXMODEL_APOLLO
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
int ret = ioctl(fd, IOC_FP_SET_NUMBER, number);
|
||||
if(ret < 0) {
|
||||
support_numbers = false;
|
||||
|
Reference in New Issue
Block a user