scripts: sercomm-pid.py: use uppercase hwid in pid
authorMikhail Zhilkin <csharper2005@gmail.com>
Sun, 12 Nov 2023 07:46:11 +0000 (07:46 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 27 Nov 2023 01:02:35 +0000 (02:02 +0100)
commitdae399196b5b0b84f0250a69e6de42abdebd71d7
tree22104f7bef4f348c497a0bd16d41f12b25d98bfe
parent95ebd609ae7bdcdb48c74ad93d747f24c94d4a07
scripts: sercomm-pid.py: use uppercase hwid in pid

Sercomm uses uppercase for hexadecimal representation of the device
hardware IDs in factory image PID. This commit brings the sercomm-pid.py
script into compliance with the original Sercomm algorithm.

Example
-------
+--------+-------------+-----------+-------------+
| Device | PID (before | PID       | PID (after  |
| HWID   | the commit) | (Sercomm) | the commit) |
+--------+-------------+-----------+-------------+
| CPJ    | 43 50 4a    | 43 50 4A  | 43 50 4A    |
+--------+-------------+-----------+-------------+

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
(cherry picked from commit 28d32244e122051ec88551e831fb9cf34da7cd76)
scripts/sercomm-pid.py