libspark/hardware_caps: recognize dvfd [untested]

Origin commit data
------------------
Branch: master
Commit: b030449f72
Author: martii <m4rtii@gmx.de>
Date: 2014-03-22 (Sat, 22 Mar 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-03-22 17:23:51 +01:00
parent 0b97026aa0
commit 8db2c79739

View File

@@ -44,7 +44,7 @@ hw_caps_t *get_hwcaps(void)
ret = ioctl(fd, VFDGETVERSION, &val); ret = ioctl(fd, VFDGETVERSION, &val);
if (ret < 0) if (ret < 0)
fprintf(stderr, "[hardware_caps] %s: VFDGETVERSION %m\n", __func__); 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_type = HW_DISPLAY_LINE_TEXT;
caps.display_xres = 8; caps.display_xres = 8;
} }