Chore: silience some warnings

This commit is contained in:
李通洲
2024-05-03 10:07:16 +08:00
parent c4a876f6aa
commit 903ecf37f7
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -73,8 +73,8 @@ void ffEdidGetSerialAndManufactureDate(const uint8_t edid[128], uint32_t* serial
{
if (edid[17] > 0 && edid[17] < 0xFF)
{
*year = edid[17] + 1990;
*week = edid[16];
*year = (uint16_t) edid[17] + 1990;
*week = (uint16_t) edid[16];
if (*week == 0xFF) *week = 0;
}
else