make_header

Function make_header 

Source
pub fn make_header(
    model: &str,
    version_bytes: [u8; 4],
) -> Result<ConfigHeader, SdCardError>
Expand description

Creates a minimal valid .d75 header for the given model string.

Useful for generating new configuration files from scratch.

ยงErrors

Returns SdCardError::InvalidModelString if the model string is not one of the known variants.