Skip to content

Commit

Permalink
Spark debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ImTheSquid committed Dec 6, 2024
1 parent bf094f3 commit d824e76
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ async fn amain(mut leds: Leds, mut wifi: AsyncWifi<EspWifi<'static>>) {
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;
Expand Down

0 comments on commit d824e76

Please sign in to comment.