From 3cec866ba252c9c06c0cd1bd1ca832a1cbbd2d42 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sat, 9 Mar 2024 23:17:40 +0100 Subject: [PATCH] Increase feed after image --- showbits-thermal-printer/src/drawer.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/showbits-thermal-printer/src/drawer.rs b/showbits-thermal-printer/src/drawer.rs index 7d1023b..fe1f6c1 100644 --- a/showbits-thermal-printer/src/drawer.rs +++ b/showbits-thermal-printer/src/drawer.rs @@ -39,6 +39,8 @@ pub struct Drawer { } impl Drawer { + const FEED: f32 = 64.0; + pub fn new(rx: mpsc::Receiver, printer: Printer) -> Self { Self { rx, @@ -133,7 +135,7 @@ impl Drawer { let root = Node::empty() .with_size_width(percent(1.0)) - .with_padding_bottom(length(32.0)) + .with_padding_bottom(length(Self::FEED)) .and_child(image) .register(&mut tree)?;