Fix endianness

master
D4VID 4 months ago
parent 9a7bf05456
commit 277b5a26e4

@ -27,7 +27,7 @@ fn generate_font_data() -> io::Result<()> {
if i % 6 == 5 {
// Write the digit to the output binary file
println!("Writing {:x}", bits);
output_file.write(&bits.to_be_bytes())?;
output_file.write(&bits.to_le_bytes())?;
bits = 0;
println!();
@ -49,7 +49,7 @@ fn generate_font_data() -> io::Result<()> {
// Write last remaining character
println!("Writing remaining {:x}", bits);
output_file.write(&bits.to_be_bytes())?;
output_file.write(&bits.to_le_bytes())?;
return Ok(());
}

Loading…
Cancel
Save