libspark/hardware_caps: recognize dvfd [untested]

This commit is contained in:
martii
2014-03-22 17:23:51 +01:00
committed by Stefan Seyfried
parent 908df1e86e
commit 0ec87d5a95

View File

@@ -43,7 +43,7 @@ hw_caps_t *get_hwcaps(void)
ret = ioctl(fd, VFDGETVERSION, &val);
if (ret < 0)
fprintf(stderr, "[hardware_caps] %s: VFDGETVERSION %m\n", __func__);
else if (val == 1) { /* VFD, others not yet seen in the wild */
else if (val & 1) { /* VFD = 1, DVFD = 3 */
caps.display_type = HW_DISPLAY_LINE_TEXT;
caps.display_xres = 8;
}