Addressed some warnings, moved a few debug!() to trace!()

This commit is contained in:
2026-05-25 07:49:47 +01:00
parent dc368ca811
commit 0a7a425ea7
3 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
pub mod structs;
use std::{cmp::min};
use chrono::{Datelike, Local, Timelike};
use log::{debug, error, warn};
use log::{error, trace, warn};
use sdl3::{Sdl, pixels::Color, rect::Rect};
use structs::{Prefs, DisplayData};
@@ -12,7 +12,7 @@ const COLOR_LCD_AMBER : Color = Color::RGB(0xf4, 0xcb, 0x60);
const COLOR_LCD_GREEN : Color = Color::RGB(0xb3, 0xff, 0x00);
const COLOR_LCD_RED : Color = Color::RGB(0xff, 0x3a, 0x4a);
const COLOR_BACKGROUND : Color = Color::RGB(0x0, 0x0, 0x0 );
const COLOR_TEXT_BG : Color = Color::RGBA(0x0, 0x0, 0x0, 0x0);
const _COLOR_TEXT_BG : Color = Color::RGBA(0x0, 0x0, 0x0, 0x0);
const TEXT_SIZE: f32 = 160.0; // Size of the font in pixels
// Offsets of each part within a line
@@ -34,7 +34,7 @@ impl Screen<'_> {
}
fn format_due_for(&self, due_in_mins: i32, departure_time: u32) -> String {
debug!("Due in mins: {:02}", due_in_mins);
trace!("Due in mins: {:02}", due_in_mins);
if due_in_mins <= 1 {
return String::from("due");
}