IT WOOORKS!!

This commit is contained in:
Clara Dautermann 2025-07-08 01:00:09 +02:00
parent bfdfdc01c5
commit 17dec99395
Signed by: clara
GPG key ID: 223391B52FAD4463
8 changed files with 59 additions and 159 deletions

View file

@ -1,14 +1,10 @@
use anyhow::{bail, Result};
use esp_idf_svc::eventloop::EspSystemEventLoop;
use esp_idf_svc::hal::prelude::Peripherals;
use log::info;
fn main() -> Result<()> {
fn main() {
// It is necessary to call this function once. Otherwise some patches to the runtime
// implemented by esp-idf-sys might not link properly. See https://github.com/esp-rs/esp-idf-template/issues/71
esp_idf_svc::sys::link_patches();
// Bind the log crate to the ESP Logging facilities
esp_idf_svc::log::EspLogger::initialize_default();
let peripherals = Peripherals::take().unwrap();
let sysloop = EspSystemEventLoop::take()?;
info!("Hello, world!");
log::info!("Hello, world!");
}