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>
Sat, 25 Nov 2023 00:11:18 +0000 (01:11 +0100)
commit28d32244e122051ec88551e831fb9cf34da7cd76
treef0a58e18d15da270d962538cd13935bc46611206
parent58df088d75b0a809bc89fcb45e6c53945899d7ad
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>
scripts/sercomm-pid.py