Compare commits

..

2 Commits

Author SHA1 Message Date
nahuel 1b2862dea5 Use gnu tools to compile for aarch64 2026-07-09 03:09:38 +01:00
nahuel 6b70140869 Small improvements to the rendered image. 2026-07-09 03:09:10 +01:00
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ auto-link=true
cc = "aarch64-linux-gnu-gcc"
cxx = "aarch64-linux-gnu-g++"
ar = "aarch64-linux-gnu-ar"
# ranlib = "aarch64-linux-gnu-ranlib"
linker = "aarch64-linux-gnu-gcc"
ranlib = "aarch64-linux-gnu-ranlib"
linker = "aarch64-linux-gnu-ld"
[target.arm-unknown-linux-gnueabihf]
+2 -2
View File
@@ -18,7 +18,7 @@ const TEXT_SIZE: f32 = 160.0; // Size of the font in pixels
// Offsets of each part within a line
const XOFFSET_ROUTE: u32 = 24;
const XOFFSET_DESTINATION: u32 = 300;
const XOFFSEET_TIME_LEFT: u32 = 1606;
const XOFFSEET_TIME_LEFT: u32 = 1560;
const INTER_LINE_OVERLAP: u32 = 15;
impl Screen<'_> {
@@ -39,7 +39,7 @@ impl Screen<'_> {
return String::from("Due");
}
if due_in_mins < 60 {
return due_in_mins.to_string() + "min";
return due_in_mins.to_string() + " min";
}
return format!("{:02}:{:02}", (departure_time / 3600) as i32, ((departure_time / 60) % 60) as i32);
}