Skip to content

Commit

Permalink
Convert to hex format for receipt printer
Browse files Browse the repository at this point in the history
  • Loading branch information
ImTheSquid committed Dec 8, 2024
1 parent cc8ecba commit 24da9cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sign-firmware"
version = "0.1.12"
version = "0.1.13"
authors = ["Jack Hogan <jackhogan11@gmail.com>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ impl PrinterEvent {
PrinterInstruction::PrintCut,
],
PrinterEvent::NewBolt(b) => vec![
PrinterInstruction::Text(format!("Lightning strikes! It is now bolt {b}")),
PrinterInstruction::Text(format!("Lightning strikes! It is now bolt {b:x}")),
PrinterInstruction::PrintCut,
],
PrinterEvent::NewZap(z) => vec![
PrinterInstruction::Text(format!(
"Did you just lick a 9V battery? It is now zap {z}"
"Did you just lick a 9V battery? It is now zap {z:x}"
)),
PrinterInstruction::PrintCut,
],
Expand Down

0 comments on commit 24da9cc

Please sign in to comment.