oxidecomputer / hubris

A lightweight, memory-protected, message-passing kernel for deeply embedded systems.
Mozilla Public License 2.0
3.04k stars 180 forks source link

oxide-barcode: allow shorter serial and part numbers #1939

Open cbiffle opened 1 day ago

cbiffle commented 1 day ago

This retains the original maximum length for both fields, but permits parsed strings to contain shorter sections. Shorter sections are right-padded with NULs for consistency with IPCC.

Fixes #1893