Updated to 2024 edition

This commit is contained in:
zenonet
2025-10-08 20:08:26 +02:00
parent c84f243657
commit d30d8ebd6d
2 changed files with 7 additions and 6 deletions

View File

@@ -2,9 +2,11 @@
name = "esp-epd"
version = "0.1.0"
authors = ["zenonet <git@zenonet.de>"]
edition = "2021"
edition = "2024"
resolver = "2"
rust-version = "1.77"
# This was specified as 1.77 for the template, idk, how the rust version could cause problems...
#rust-version = "1.89"
[[bin]]
name = "esp-epd"

View File

@@ -31,14 +31,13 @@ use embedded_layout::{layout::linear::{spacing::DistributeFill, FixedMargin, Lin
type Timetable = [[Option<Lesson>;8]; 5];
#[link_section = ".rtc.data"]
#[unsafe(link_section = ".rtc.data")]
static mut WAKEUP_COUNTER: u64 = 0;
#[link_section = ".rtc.data"]
#[unsafe(link_section = ".rtc.data")]
static mut FETCHING_FAIL_COUNT: Option<NonZeroU16> = None;
#[link_section = ".rtc.data"]
#[unsafe(link_section = ".rtc.data")]
static mut ERROR_MSG: Option<[u8; 2048]> = None;
fn main() -> anyhow::Result<()> {