From d824e76eb0eb74e9cabc565f3598af8b4649704d Mon Sep 17 00:00:00 2001 From: Jack Hogan Date: Thu, 5 Dec 2024 23:46:09 -0500 Subject: [PATCH] Spark debug --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index e2ce2d7..928ade6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,6 +63,12 @@ async fn amain(mut leds: Leds, mut wifi: AsyncWifi>) { if let Err(e) = printer::post_event(printer::PrinterEvent::NewZap(time.zaps)).await { log::error!("ZAP: Printer error: {e}"); } + } else if time.sparks != last_time.sparks { + if let Err(e) = + printer::post_event(printer::PrinterEvent::NewZap(time.zaps + 200)).await + { + log::error!("SPARK: Printer error: {e}"); + } } last_time = time;