diff options
author | 2024-08-06 13:56:37 +0900 | |
---|---|---|
committer | 2024-08-07 23:03:28 +0000 | |
commit | 3298d360630957f93b1aaa63ad5a8cc0f9a269e2 (patch) | |
tree | 580276830b57201f57fd471cae04938d8e623b11 /libs/input/PointerController.cpp | |
parent | 2d8aff7ea01a064a496a9b7d0a496f8526db6636 (diff) |
HDMI: Fix BCD handling error
isValidHour/isValidMinute accept a parameter as BCD encoded value, but they check it without translating to raw value, so valid hour/minute may be detected as an error;
e.g.
18:00 is within 23:00 but 0x18(24) is over 23
* 0x18 should be decoded (0x10 >> 4) x 10 + 0x08 = 18
Fix to translate the parameter before checking by isWithinRange.
Bug: 357733495
Change-Id: Id0cfb1211048b1f2eaebf3db5814e3da0f34e5b9
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions