mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-11-16 19:48:30 +01:00
di-edid-decode: don't print manufacture week if unspecified
Fixes philips-ftv-2017. Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
1388f16e71
commit
8d221c1d3d
2 changed files with 3 additions and 10 deletions
|
@ -793,10 +793,12 @@ print_edid(const struct di_edid *edid)
|
|||
}
|
||||
if (vendor_product->model_year != 0) {
|
||||
printf(" Model year: %d\n", vendor_product->model_year);
|
||||
} else {
|
||||
} else if (vendor_product->manufacture_week != 0) {
|
||||
printf(" Made in: week %d of %d\n",
|
||||
vendor_product->manufacture_week,
|
||||
vendor_product->manufacture_year);
|
||||
} else {
|
||||
printf(" Made in: %d\n", vendor_product->manufacture_year);
|
||||
}
|
||||
|
||||
printf(" Basic Display Parameters & Features:\n");
|
||||
|
|
|
@ -1,14 +1,5 @@
|
|||
--- ref
|
||||
+++ di
|
||||
@@ -3,7 +3,7 @@
|
||||
Vendor & Product Identification:
|
||||
Manufacturer: PHL
|
||||
Model: 0
|
||||
- Made in: 2017
|
||||
+ Made in: week 0 of 2017
|
||||
Basic Display Parameters & Features:
|
||||
Digital display
|
||||
Image size is variable
|
||||
@@ -25,10 +25,10 @@
|
||||
DMT 0x2a: 1400x1050 59.978442 Hz 4:3 65.317 kHz 121.750000 MHz
|
||||
DMT 0x3a: 1680x1050 59.954250 Hz 16:10 65.290 kHz 146.250000 MHz
|
||||
|
|
Loading…
Reference in a new issue